From b59f93c67af29bcfba2ca0bacf105893ce931a87 Mon Sep 17 00:00:00 2001 From: illiliti Date: Fri, 17 Apr 2020 17:14:04 +0300 Subject: [PATCH] add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..04b222a --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +PREFIX = /usr +SYSCONFDIR = /etc +BINDIR = ${PREFIX}/bin +DATADIR = ${PREFIX}/share + +install: + install -Dm600 config ${DESTDIR}${SYSCONFDIR}/tinyramfs/config + install -Dm755 tinyramfs ${DESTDIR}${BINDIR}/tinyramfs + install -Dm755 usr/share/tinyramfs/init ${DESTDIR}${DATADIR}/tinyramfs/init + install -Dm755 usr/share/tinyramfs/device-helper ${DESTDIR}${DATADIR}/tinyramfs/device-helper + +uninstall: + rm -f ${DESTDIR}${BINDIR}/tinyramfs + rm -rf ${DESTDIR}${DATADIR}/tinyramfs