tinyramfs/Makefile

22 lines
700 B
Makefile
Raw Normal View History

2020-04-17 19:44:04 +05:30
PREFIX = /usr
SYSCONFDIR = /etc
BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share
install:
mkdir -p \
${DESTDIR}${DATADIR}/tinyramfs/hooks \
${DESTDIR}${SYSCONFDIR}/tinyramfs \
${DESTDIR}${BINDIR}
cp -R hooks/* ${DESTDIR}${DATADIR}/tinyramfs/hooks/
cp init device-helper ${DESTDIR}${DATADIR}/tinyramfs
2020-07-05 11:32:21 +05:30
chmod -R 755 ${DESTDIR}${DATADIR}/tinyramfs
cp config ${DESTDIR}${SYSCONFDIR}/tinyramfs
chmod 600 ${DESTDIR}${SYSCONFDIR}/tinyramfs/config
cp tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
chmod 755 ${DESTDIR}${BINDIR}/tinyramfs
2020-04-17 19:44:04 +05:30
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs
rm -rf ${DESTDIR}${DATADIR}/tinyramfs