tinyramfs/Makefile

30 lines
973 B
Makefile
Raw Normal View History

2020-08-24 17:09:33 +03:00
.POSIX:
PREFIX = /usr
BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share
MANDIR = ${PREFIX}/share/man
2020-04-17 17:14:04 +03:00
install:
2020-09-04 08:51:44 +03:00
mkdir -p ${DESTDIR}${DATADIR}/tinyramfs \
2020-09-04 08:49:45 +03:00
${DESTDIR}${MANDIR}/man5 \
2020-09-04 11:34:59 +03:00
${DESTDIR}${MANDIR}/man8 \
2020-09-04 15:07:55 +03:00
${DESTDIR}${MANDIR}/man7 \
2020-08-24 17:09:33 +03:00
${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 11:34:59 +03:00
cp docs/tinyramfs.8 ${DESTDIR}${MANDIR}/man8
2020-09-04 15:07:55 +03:00
cp docs/tinyramfs.hooks.7 ${DESTDIR}${MANDIR}/man7
cp docs/tinyramfs.cmdline.7 ${DESTDIR}${MANDIR}/man7
2020-09-04 11:34:59 +03:00
cp docs/tinyramfs.config.5 ${DESTDIR}${MANDIR}/man5
2020-04-17 17:14:04 +03:00
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs
rm -rf ${DESTDIR}${DATADIR}/tinyramfs
2020-09-04 11:34:59 +03:00
rm -f ${DESTDIR}${MANDIR}/man8/tinyramfs.8
2020-09-04 15:07:55 +03:00
rm -f ${DESTDIR}${MANDIR}/man7/tinyramfs.hooks.7
rm -f ${DESTDIR}${MANDIR}/man7/tinyramfs.cmdline.7
2020-09-04 11:34:59 +03:00
rm -f ${DESTDIR}${MANDIR}/man5/tinyramfs.config.5