The repository formerly known as dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 743B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ANY_BINS = atch dtch glitch hnel modem pbcopy pbd pbpaste pngo scheme wake xx
  2. BSD_BINS = klon watch
  3. LIN_BINS = bri fbatt fbclock
  4. ALL_BINS = $(ANY_BINS) $(BSD_BINS) $(LIN_BINS)
  5. CFLAGS += -Wall -Wextra -Wpedantic
  6. LDLIBS = -lcurses -lm -lutil -lz
  7. any: .gitignore tags $(ANY_BINS)
  8. bsd: any $(BSD_BINS)
  9. linux: any $(LIN_BINS)
  10. .gitignore: Makefile
  11. echo tags $(ALL_BINS) scheme.png | tr ' ' '\n' > .gitignore
  12. tags: *.c
  13. ctags -w *.c
  14. atch: dtch
  15. ln -f dtch atch
  16. pbcopy pbpaste: pbd
  17. ln -f pbd $@
  18. scheme.png: scheme
  19. ./scheme -t -g > scheme.png
  20. setuid: bri
  21. chown root bri
  22. chmod u+s bri
  23. clean:
  24. rm -f tags $(ALL_BINS)
  25. link:
  26. mkdir -p ~/.local/bin
  27. ln -s -f $(ALL_BINS:%=$(PWD)/%) ~/.local/bin
  28. unlink:
  29. rm -f $(ALL_BINS:%=~/.local/bin/%)