improve portability, code quality, fix bugs, etc...
This commit is contained in:
15
Makefile
15
Makefile
@@ -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
|
||||
|
Reference in New Issue
Block a user