2020-08-24 17:09:33 +03:00
|
|
|
.POSIX:
|
|
|
|
|
2021-07-31 20:20:16 +03:00
|
|
|
PREFIX = /usr/local
|
2020-09-07 09:54:12 +03:00
|
|
|
BINDIR = ${PREFIX}/bin
|
2021-07-31 20:20:16 +03:00
|
|
|
LIBDIR = ${PREFIX}/lib
|
2020-04-17 17:14:04 +03:00
|
|
|
|
|
|
|
install:
|
2021-07-31 20:20:16 +03:00
|
|
|
mkdir -p ${DESTDIR}${BINDIR}
|
|
|
|
mkdir -p ${DESTDIR}${LIBDIR}/tinyramfs
|
|
|
|
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 -R hook ${DESTDIR}${LIBDIR}/tinyramfs/hook.d
|
2020-04-17 17:14:04 +03:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f ${DESTDIR}${BINDIR}/tinyramfs
|
2021-07-31 20:20:16 +03:00
|
|
|
rm -rf ${DESTDIR}${LIBDIR}/tinyramfs
|
|
|
|
|
|
|
|
check:
|
|
|
|
(cd test && ./check.sh)
|