diff options
author | Roy Marples <roy@marples.name> | 2008-01-11 16:03:38 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-11 16:03:38 +0000 |
commit | 28afeac09e15c9983021d7afb7af523f8f62c5fa (patch) | |
tree | 10a589135da4188b2d6293b4c953a56f452775db /man | |
parent | abde759d5bf6028135667779297d30491f1f4688 (diff) |
Add sys.mk to define system locations.
Diffstat (limited to 'man')
-rw-r--r-- | man/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/man/Makefile b/man/Makefile index eaae253f..ee044d3f 100644 --- a/man/Makefile +++ b/man/Makefile @@ -1,4 +1,3 @@ -DIR= /usr/share/man _MAN3_SH= ls -1 *.3 _MAN3!= ${_MAN3_SH} MAN3= ${_MAN3}$(shell ${_MAN3_SH}) @@ -14,23 +13,24 @@ MAKE_LINKS= suffix=$${man\#*.}; \ -n -e '/^\.Sh NAME$$/,/\.Sh/ s/\.Nm //p' $${man}`; do \ if test "$${link}" != "$${prefix}" ; then \ ln -sf $${man} \ - ${DESTDIR}/${DIR}/man$${suffix}/$${link}.$${suffix} ; \ + ${DESTDIR}/${MANDIR}$${suffix}/$${link}.$${suffix} ; \ fi; \ done; -INSTALL?= install +MK= ../mk +include ${MK}/sys.mk all: install: - ${INSTALL} -d ${DESTDIR}/${DIR}/man3 + ${INSTALL} -d ${DESTDIR}/${MANDIR}3 for man in ${MAN3}; do \ - ${INSTALL} -m 0644 "$$man" ${DESTDIR}/${DIR}/man3 || exit $$?; \ + ${INSTALL} -m ${MANMODE} "$$man" ${DESTDIR}/${MANDIR}3 || exit $$?; \ ${MAKE_LINKS} \ done - ${INSTALL} -d ${DESTDIR}/${DIR}/man8 + ${INSTALL} -d ${DESTDIR}/${MANDIR}8 for man in ${MAN8}; do \ - ${INSTALL} -m 0644 "$$man" ${DESTDIR}/${DIR}/man8 || exit $$?; \ + ${INSTALL} -m ${MANMODE} "$$man" ${DESTDIR}/${MANDIR}8 || exit $$?; \ ${MAKE_LINKS} \ done |