Makefile 362 B

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