From 28afeac09e15c9983021d7afb7af523f8f62c5fa Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 16:03:38 +0000 Subject: Add sys.mk to define system locations. --- man/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'man/Makefile') 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 -- cgit v1.2.3