summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e7fdcc6)
It's easier to remember "make docs" than "make drin.1" and moreover the
explicit "docs" target will show up in shell autocompletion while the
implicit "drin.1" target will not.
BIN_DIR := $(prefix)/bin
MAN_DIR := $(prefix)/share/man
BIN_DIR := $(prefix)/bin
MAN_DIR := $(prefix)/share/man
-.PHONY: all local installdocs install clean
+.PHONY: all local docs installdocs install clean
local: clean drin
touch drin.in
local: clean drin
touch drin.in
+docs: drin.1
+
+installdocs: docs
install -d $(DESTDIR)$(MAN_DIR)/man1
install -m644 drin.1 $(DESTDIR)$(MAN_DIR)/man1
install -d $(DESTDIR)$(MAN_DIR)/man1
install -m644 drin.1 $(DESTDIR)$(MAN_DIR)/man1