tinyramfs/Makefile

24 lines
562 B
Makefile
Raw Normal View History

2020-08-24 19:39:33 +05:30
.POSIX:
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
LIBDIR = ${PREFIX}/lib
2020-04-17 19:44:04 +05:30
install:
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 19:44:04 +05:30
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs
rm -rf ${DESTDIR}${LIBDIR}/tinyramfs
check:
2021-08-05 11:33:47 +05:30
(cd test && ${MAKE})
.PHONY: install uninstall check