improve portability, code quality, fix bugs, etc...

This commit is contained in:
illiliti
2020-06-28 06:58:57 +03:00
parent 1287f2996b
commit 9c16bad562
10 changed files with 539 additions and 578 deletions

View File

@@ -4,10 +4,17 @@ BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share
install:
install -Dm600 config ${DESTDIR}${SYSCONFDIR}/tinyramfs/config
install -Dm755 tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
install -Dm755 init ${DESTDIR}${DATADIR}/tinyramfs/init
install -Dm755 device-helper ${DESTDIR}${DATADIR}/tinyramfs/device-helper
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
chmod -R 644 ${DESTDIR}${DATADIR}/tinyramfs
cp config ${DESTDIR}${SYSCONFDIR}/tinyramfs
chmod 600 ${DESTDIR}${SYSCONFDIR}/tinyramfs/config
cp tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
chmod 755 ${DESTDIR}${BINDIR}/tinyramfs
uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs