aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-19 03:39:59 +0200
committerDuncaen <mail@duncano.de>2017-05-19 03:39:59 +0200
commitd93d1d31627bfa22f669ba6b0116bed4840d1bee (patch)
tree364c600db152c6fbaa7c83105e46a652260dd990
parente800c9a88f0a27eb5eaeb017a1384580d5eb216f (diff)
downloadlobase-d93d1d31627bfa22f669ba6b0116bed4840d1bee.tar.gz
mk/bsd.man.mk: add install rules
-rw-r--r--mk/bsd.man.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/mk/bsd.man.mk b/mk/bsd.man.mk
index e69de29..f85c527 100644
--- a/mk/bsd.man.mk
+++ b/mk/bsd.man.mk
@@ -0,0 +1,19 @@
+
+install: maninstall
+
+VPATH+=${.CURDIR}
+
+maninstall: _maninstall
+
+_maninstall: ${MAN}
+ for f in $^; do \
+ s=$${f##*.}; \
+ test -d "${DESTDIR}${MANDIR}$$s" || \
+ $(INSTALL) -d -m 755 "${DESTDIR}${MANDIR}$$s"; \
+ ${INSTALL} -m ${MANMODE} "$$f" "${DESTDIR}${MANDIR}$$s/$${f##*/}"; \
+ done
+
+
+manlint:
+
+.PHONY: install maninstall _maninstall manlint