2015-06-09 16:19:51 -05:00
|
|
|
MK= ../mk
|
|
|
|
include ${MK}/sys.mk
|
|
|
|
include ${MK}/os.mk
|
|
|
|
|
2013-10-16 12:55:37 -05:00
|
|
|
MAN3= einfo.3 \
|
2008-03-03 12:34:51 +00:00
|
|
|
rc_config.3 rc_deptree.3 rc_find_pids.3 rc_plugin_hook.3 \
|
2008-03-17 13:25:56 +00:00
|
|
|
rc_runlevel.3 rc_service.3 rc_stringlist.3
|
2013-12-21 14:51:11 -06:00
|
|
|
MAN8= rc-service.8 rc-status.8 rc-update.8 openrc.8 openrc-run.8 \
|
2013-05-01 18:01:11 -05:00
|
|
|
service.8 start-stop-daemon.8
|
2007-12-24 11:48:33 +00:00
|
|
|
|
2015-06-09 16:19:51 -05:00
|
|
|
ifeq (${OS},Linux)
|
|
|
|
MAN8 += rc-sstat.8
|
|
|
|
endif
|
|
|
|
|
2007-12-24 22:34:22 +00:00
|
|
|
# Handy macro to create symlinks
|
|
|
|
# This does rely on correctly formatting our manpages!
|
2008-01-10 16:35:59 +00:00
|
|
|
MAKE_LINKS= suffix=$${man\#*.}; \
|
|
|
|
prefix=$${man%%.*}; \
|
|
|
|
for link in `sed -e 's/ ,//g' \
|
|
|
|
-n -e '/^\.Sh NAME$$/,/\.Sh/ s/\.Nm //p' $${man}`; do \
|
|
|
|
if test "$${link}" != "$${prefix}" ; then \
|
|
|
|
ln -sf $${man} \
|
2008-03-25 17:37:54 +00:00
|
|
|
${DESTDIR}/${MANDIR}/man$${suffix}/$${link}.$${suffix} ; \
|
2008-01-10 16:35:59 +00:00
|
|
|
fi; \
|
|
|
|
done;
|
2007-12-24 22:34:22 +00:00
|
|
|
|
2009-04-30 15:05:39 +01:00
|
|
|
include ${MK}/gitignore.mk
|
2008-01-10 16:35:59 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
2008-03-25 17:32:19 +00:00
|
|
|
${INSTALL} -d ${DESTDIR}/${MANDIR}/man3
|
2008-01-10 16:35:59 +00:00
|
|
|
for man in ${MAN3}; do \
|
2008-03-25 17:32:19 +00:00
|
|
|
${INSTALL} -m ${MANMODE} "$$man" ${DESTDIR}/${MANDIR}/man3 || exit $$?; \
|
2008-01-10 16:35:59 +00:00
|
|
|
${MAKE_LINKS} \
|
2012-01-22 01:17:42 +01:00
|
|
|
done
|
2008-03-25 17:32:19 +00:00
|
|
|
${INSTALL} -d ${DESTDIR}/${MANDIR}/man8
|
2008-01-10 16:35:59 +00:00
|
|
|
for man in ${MAN8}; do \
|
2008-03-25 17:32:19 +00:00
|
|
|
${INSTALL} -m ${MANMODE} "$$man" ${DESTDIR}/${MANDIR}/man8 || exit $$?; \
|
2008-01-10 16:35:59 +00:00
|
|
|
${MAKE_LINKS} \
|
|
|
|
done
|
|
|
|
|
2008-03-24 06:10:40 +00:00
|
|
|
check test::
|
|
|
|
|
2008-01-10 16:35:59 +00:00
|
|
|
clean:
|