Makefile 370 B

12345678910111213141516
  1. PREFIX ?= /usr/local
  2. CC ?= cc
  3. output: dwmblocks.c blocks.def.h blocks.h
  4. ${CC} `pkg-config --cflags x11 --libs x11` dwmblocks.c -o dwmblocks
  5. blocks.h:
  6. cp blocks.def.h $@
  7. clean:
  8. rm -f *.o *.gch dwmblocks
  9. install: output
  10. mkdir -p $(DESTDIR)$(PREFIX)/bin
  11. install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
  12. uninstall:
  13. rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks