123456789101112131415161718192021222324252627282930313233343536373839 |
- include config.mk
- all: options dwmblocks
- options:
- @echo dwmblocks build options:
- @echo "CFLAGS = ${CFLAGS} ${NO_X}"
- @echo "LDFLAGS = ${LDFLAGS}"
- @echo "CC = ${CC}"
- @echo "PULSEFLAGS = ${PULSEFLAGS}"
- dwmblocks: dwmblocks.c pulse-listener.c blocks.def.h blocks.h
- ${CC} ${NO_X} -o dwmblocks dwmblocks.c pulse-listener.c ${CFLAGS} ${PULSEFLAGS} ${LDFLAGS}
- blocks.h:
- cp blocks.def.h $@
- config.mk:
- cp config.def.mk $@
- clean:
- rm -f *.o *.gch dwmblocks
- install: dwmblocks
- mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
- chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
- install -m0755 scripts/* ${DESTDIR}${PREFIX}/bin
- uninstall:
- rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks \
- ${DESTDIR}${PREFIX}/bin/dwmblocks-battery \
- ${DESTDIR}${PREFIX}/bin/dwmblocks-network \
- ${DESTDIR}${PREFIX}/bin/dwmblocks-volume \
- ${DESTDIR}${PREFIX}/bin/dwmblocks-fcitx5 \
- ${DESTDIR}${PREFIX}/bin/dwmblocks-mu4e
- .PHONY: all options clean install uninstall
|