aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-21 11:00:20 +0300
committerCem Keylan <cem@ckyln.com>2020-01-21 11:00:20 +0300
commit69fcae39d94d526771e3715f1ce404e8906dfc5f (patch)
tree9057d01f2bdf0dd82e9416fb82788057f3e29880 /Makefile
parent391be3c7b8459d74c102ce0059a3a4d0dbe4f188 (diff)
downloadinit-69fcae39d94d526771e3715f1ce404e8906dfc5f.tar.gz
add init manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8d78c21..ca20f99 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
PREFIX=/usr
INITDIR=${PREFIX}/lib/init
+MAN8=${PREFIX}/share/man/man8
VERSION=0.5.1
install:
@@ -13,6 +14,7 @@ install:
sed 's#INITDIR#${INITDIR}#g' < rc.shutdown > ${DESTDIR}${INITDIR}/rc.shutdown
chmod 755 ${DESTDIR}${INITDIR}/rc.boot ${DESTDIR}${INITDIR}/rc.shutdown
install -Dm644 README ${DESTDIR}${INITDIR}/README
+ install -Dm644 init.8 ${DESTDIR}${MAN8}/init.8
uninstall:
rm -f ${DESTDIR}/etc/init/rc.conf
@@ -21,11 +23,12 @@ uninstall:
rm -f ${DESTDIR}${INITDIR}/rc.shutdown
rm -f ${DESTDIR}${INITDIR}/rc.lib
rm -f ${DESTDIR}${INITDIR}/README
+ rm -f ${DESTDIR}${MAN8}/init.8
dist:
mkdir -p init-${VERSION}
cp LICENSE Makefile README rc.boot rc.conf rc.lib rc.local \
- rc.shutdown init-${VERSION}
+ rc.shutdown init.8 init-${VERSION}
tar -cf init-${VERSION}.tar init-${VERSION}
gzip init-${VERSION}.tar
rm -rf init-${VERSION}