2020-08-24 19:39:33 +05:30
|
|
|
.POSIX:
|
|
|
|
|
2021-07-31 22:50:16 +05:30
|
|
|
PREFIX = /usr/local
|
2020-09-07 12:24:12 +05:30
|
|
|
BINDIR = ${PREFIX}/bin
|
2022-05-06 17:29:47 +05:30
|
|
|
MANDIR = ${PREFIX}/share/man
|
2021-07-31 22:50:16 +05:30
|
|
|
LIBDIR = ${PREFIX}/lib
|
2020-04-17 19:44:04 +05:30
|
|
|
|
|
|
|
install:
|
2021-07-31 22:50:16 +05:30
|
|
|
mkdir -p ${DESTDIR}${BINDIR}
|
|
|
|
mkdir -p ${DESTDIR}${LIBDIR}/tinyramfs
|
2022-05-06 17:29:47 +05:30
|
|
|
mkdir -p ${DESTDIR}${MANDIR}/man5
|
|
|
|
mkdir -p ${DESTDIR}${MANDIR}/man8
|
2021-07-31 22:50:16 +05:30
|
|
|
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/
|
2022-05-06 17:29:47 +05:30
|
|
|
cp -f doc/tinyramfs.5 ${DESTDIR}${MANDIR}/man5/
|
|
|
|
cp -f doc/tinyramfs.8 ${DESTDIR}${MANDIR}/man8/
|
2021-07-31 22:50:16 +05:30
|
|
|
cp -R hook ${DESTDIR}${LIBDIR}/tinyramfs/hook.d
|
2020-04-17 19:44:04 +05:30
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/tinyramfs
|
2022-05-06 17:29:47 +05:30
|
|
|
rm -f ${DESTDIR}${MANDIR}/man5/tinyramfs.5
|
|
|
|
rm -f ${DESTDIR}${MANDIR}/man8/tinyramfs.8
|
2021-07-31 22:50:16 +05:30
|
|
|
rm -rf ${DESTDIR}${LIBDIR}/tinyramfs
|
|
|
|
|
|
|
|
check:
|
2021-08-05 11:33:47 +05:30
|
|
|
(cd test && ${MAKE})
|
|
|
|
|
2022-05-06 17:29:47 +05:30
|
|
|
doc:
|
|
|
|
scdoc < doc/tinyramfs.5.scd > doc/tinyramfs.5
|
|
|
|
scdoc < doc/tinyramfs.8.scd > doc/tinyramfs.8
|
|
|
|
|
|
|
|
.PHONY: install uninstall check doc
|