-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
34 lines (28 loc) · 957 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.POSIX:
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/share/man
LIBDIR = ${PREFIX}/lib
install:
mkdir -p ${DESTDIR}${BINDIR}
mkdir -p ${DESTDIR}${LIBDIR}/tinyramfs
mkdir -p ${DESTDIR}${MANDIR}/man5
mkdir -p ${DESTDIR}${MANDIR}/man8
cp -f tinyramfs ${DESTDIR}${BINDIR}/
cp -f lib/init.sh ${DESTDIR}${LIBDIR}/tinyramfs/
cp -f lib/helper.sh ${DESTDIR}${LIBDIR}/tinyramfs/
cp -f lib/common.sh ${DESTDIR}${LIBDIR}/tinyramfs/
cp -f doc/tinyramfs.5 ${DESTDIR}${MANDIR}/man5/
cp -f doc/tinyramfs.8 ${DESTDIR}${MANDIR}/man8/
cp -R hook ${DESTDIR}${LIBDIR}/tinyramfs/hook.d
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs
rm -f ${DESTDIR}${MANDIR}/man5/tinyramfs.5
rm -f ${DESTDIR}${MANDIR}/man8/tinyramfs.8
rm -rf ${DESTDIR}${LIBDIR}/tinyramfs
check:
(cd test && ${MAKE})
doc:
scdoc < doc/tinyramfs.5.scd > doc/tinyramfs.5
scdoc < doc/tinyramfs.8.scd > doc/tinyramfs.8
.PHONY: install uninstall check doc