common.mk (976B)
1 all: 2 3 install: all simpleinstall 4 uninstall: simpleuninstall 5 6 DOCDIR = $(DOC) 7 simpleinstall: 8 for f in $(DOCS); do \ 9 $(INSTALL) 0644 $$f $(DOCDIR) $$f; \ 10 done 11 for f in $(TEXT); do \ 12 $(INSTALL) 0644 $$f $(DIR) $$f; \ 13 done 14 for f in $(BINARY); do \ 15 $(INSTALL) -b 0644 $$f $(DIR) $$f; \ 16 done 17 for f in $(EXECS); do \ 18 $(INSTALL) -b 0755 $$f $(DIR) $$f; \ 19 done 20 21 simpleuninstall: 22 for f in $(DOCS); do \ 23 $(UNINSTALL) $$f $(DOCDIR) $$f; \ 24 done 25 for f in $(TEXT); do \ 26 $(UNINSTALL) $$f $(DIR) $$f; \ 27 done 28 for f in $(BINARY); do \ 29 $(UNINSTALL) -b $$f $(DIR) $$f; \ 30 done 31 for f in $(EXECS); do \ 32 $(UNINSTALL) -b $$f $(DIR) $$f; \ 33 done 34 35 cleandep: 36 echo CLEANDEP 37 rm .depend 2>/dev/null || true 38 39 tags: 40 files=; \ 41 for f in $(OBJ); do \ 42 [ -f "$$f.c" ] && files="$$files $$f.c"; \ 43 done; \ 44 echo CTAGS $$files $(TAGFILES) || \ 45 ctags $$files $(TAGFILES) 46 47 .PHONY: all options clean dist install uninstall depend cleandep tags 48 .PHONY: simpleuninstall simpleinstall