2013-10-16 23:25:37 +05:30
|
|
|
MAN3= einfo.3 \
|
2008-03-03 18:04:51 +05:30
|
|
|
rc_config.3 rc_deptree.3 rc_find_pids.3 rc_plugin_hook.3 \
|
2008-03-17 18:55:56 +05:30
|
|
|
rc_runlevel.3 rc_service.3 rc_stringlist.3
|
2013-12-22 02:21:11 +05:30
|
|
|
MAN8= rc-service.8 rc-status.8 rc-update.8 openrc.8 openrc-run.8 \
|
2013-05-02 04:31:11 +05:30
|
|
|
service.8 start-stop-daemon.8
|
2007-12-24 17:18:33 +05:30
|
|
|
|
2007-12-25 04:04:22 +05:30
|
|
|
# Handy macro to create symlinks
|
|
|
|
# This does rely on correctly formatting our manpages!
|
2008-01-10 22:05:59 +05:30
|
|
|
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 23:07:54 +05:30
|
|
|
${DESTDIR}/${MANDIR}/man$${suffix}/$${link}.$${suffix} ; \
|
2008-01-10 22:05:59 +05:30
|
|
|
fi; \
|
|
|
|
done;
|
2007-12-25 04:04:22 +05:30
|
|
|
|
2008-01-11 21:33:38 +05:30
|
|
|
MK= ../mk
|
|
|
|
include ${MK}/sys.mk
|
2009-04-30 19:35:39 +05:30
|
|
|
include ${MK}/gitignore.mk
|
2008-01-10 22:05:59 +05:30
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
2008-03-25 23:02:19 +05:30
|
|
|
${INSTALL} -d ${DESTDIR}/${MANDIR}/man3
|
2008-01-10 22:05:59 +05:30
|
|
|
for man in ${MAN3}; do \
|
2008-03-25 23:02:19 +05:30
|
|
|
${INSTALL} -m ${MANMODE} "$$man" ${DESTDIR}/${MANDIR}/man3 || exit $$?; \
|
2008-01-10 22:05:59 +05:30
|
|
|
${MAKE_LINKS} \
|
2012-01-22 05:47:42 +05:30
|
|
|
done
|
2008-03-25 23:02:19 +05:30
|
|
|
${INSTALL} -d ${DESTDIR}/${MANDIR}/man8
|
2008-01-10 22:05:59 +05:30
|
|
|
for man in ${MAN8}; do \
|
2008-03-25 23:02:19 +05:30
|
|
|
${INSTALL} -m ${MANMODE} "$$man" ${DESTDIR}/${MANDIR}/man8 || exit $$?; \
|
2008-01-10 22:05:59 +05:30
|
|
|
${MAKE_LINKS} \
|
|
|
|
done
|
|
|
|
|
2008-03-24 11:40:40 +05:30
|
|
|
check test::
|
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
clean:
|