Makefile 979 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include config.mk
  2. all: options dwmblocks
  3. options:
  4. @echo dwmblocks build options:
  5. @echo "CFLAGS = ${CFLAGS} ${NO_X}"
  6. @echo "LDFLAGS = ${LDFLAGS}"
  7. @echo "CC = ${CC}"
  8. @echo "PULSEFLAGS = ${PULSEFLAGS}"
  9. dwmblocks: dwmblocks.c pulse-listener.c blocks.def.h blocks.h
  10. ${CC} ${NO_X} -o dwmblocks dwmblocks.c pulse-listener.c ${CFLAGS} ${PULSEFLAGS} ${LDFLAGS}
  11. blocks.h:
  12. cp blocks.def.h $@
  13. config.mk:
  14. cp config.def.mk $@
  15. clean:
  16. rm -f *.o *.gch dwmblocks
  17. install: dwmblocks
  18. mkdir -p ${DESTDIR}${PREFIX}/bin
  19. cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
  20. chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
  21. install -m0755 scripts/* ${DESTDIR}${PREFIX}/bin
  22. uninstall:
  23. rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks \
  24. ${DESTDIR}${PREFIX}/bin/dwmblocks-battery \
  25. ${DESTDIR}${PREFIX}/bin/dwmblocks-network \
  26. ${DESTDIR}${PREFIX}/bin/dwmblocks-volume \
  27. ${DESTDIR}${PREFIX}/bin/dwmblocks-fcitx5 \
  28. ${DESTDIR}${PREFIX}/bin/dwmblocks-mu4e
  29. .PHONY: all options clean install uninstall