tinyramfs/Makefile

25 lines
744 B
Makefile
Raw Normal View History

2020-08-24 19:39:33 +05:30
.POSIX:
2020-04-17 19:44:04 +05:30
PREFIX = /usr
BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share
2020-09-04 11:19:45 +05:30
MANDIR = ${PREFIX}/share/man
2020-04-17 19:44:04 +05:30
install:
2020-09-04 11:21:44 +05:30
mkdir -p ${DESTDIR}${DATADIR}/tinyramfs \
2020-09-04 11:19:45 +05:30
${DESTDIR}${MANDIR}/man5 \
2020-09-04 14:04:59 +05:30
${DESTDIR}${MANDIR}/man8 \
2020-08-24 19:39:33 +05:30
${DESTDIR}${BINDIR}
cp -R hooks ${DESTDIR}${DATADIR}/tinyramfs
cp device-helper ${DESTDIR}${DATADIR}/tinyramfs
cp init ${DESTDIR}${DATADIR}/tinyramfs
cp tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
2020-09-04 14:04:59 +05:30
cp docs/tinyramfs.8 ${DESTDIR}${MANDIR}/man8
cp docs/tinyramfs.config.5 ${DESTDIR}${MANDIR}/man5
2020-04-17 19:44:04 +05:30
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs
rm -rf ${DESTDIR}${DATADIR}/tinyramfs
2020-09-04 14:04:59 +05:30
rm -f ${DESTDIR}${MANDIR}/man8/tinyramfs.8
rm -f ${DESTDIR}${MANDIR}/man5/tinyramfs.config.5