tinyramfs/Makefile

21 lines
560 B
Makefile
Raw Normal View History

2020-08-24 17:09:33 +03:00
.POSIX:
2020-04-17 17:14:04 +03:00
PREFIX = /usr
SYSCONFDIR = /etc
BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share
install:
2020-08-24 17:09:33 +03:00
mkdir -p ${DESTDIR}${SYSCONFDIR}/tinyramfs \
${DESTDIR}${DATADIR}/tinyramfs \
${DESTDIR}${BINDIR}
cp config ${DESTDIR}${SYSCONFDIR}/tinyramfs
cp -R hooks ${DESTDIR}${DATADIR}/tinyramfs
cp device-helper ${DESTDIR}${DATADIR}/tinyramfs
cp init ${DESTDIR}${DATADIR}/tinyramfs
cp tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
2020-04-17 17:14:04 +03:00
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs
rm -rf ${DESTDIR}${DATADIR}/tinyramfs