restructure

This commit is contained in:
illiliti 2020-04-21 18:37:53 +03:00
parent 4b5645f3b0
commit d1631da402
4 changed files with 5 additions and 5 deletions

View File

@ -4,10 +4,10 @@ BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share DATADIR = ${PREFIX}/share
install: install:
install -Dm600 config ${DESTDIR}${SYSCONFDIR}/tinyramfs/config install -Dm600 config ${DESTDIR}${SYSCONFDIR}/tinyramfs/config
install -Dm755 tinyramfs ${DESTDIR}${BINDIR}/tinyramfs install -Dm755 tinyramfs ${DESTDIR}${BINDIR}/tinyramfs
install -Dm755 usr/share/tinyramfs/init ${DESTDIR}${DATADIR}/tinyramfs/init install -Dm755 init ${DESTDIR}${DATADIR}/tinyramfs/init
install -Dm755 usr/share/tinyramfs/device-helper ${DESTDIR}${DATADIR}/tinyramfs/device-helper install -Dm755 device-helper ${DESTDIR}${DATADIR}/tinyramfs/device-helper
uninstall: uninstall:
rm -f ${DESTDIR}${BINDIR}/tinyramfs rm -f ${DESTDIR}${BINDIR}/tinyramfs

View File

@ -84,7 +84,7 @@ prepare_environment()
[ -f "$_file" ] && { . "$_file"; break; } [ -f "$_file" ] && { . "$_file"; break; }
done || panic "failed to source config" done || panic "failed to source config"
for _dir in $_filesdir /usr/share/tinyramfs ./usr/share/tinyramfs; do for _dir in $_filesdir /usr/share/tinyramfs .; do
[ -d "$_dir" ] && { filesdir="$_dir"; break; } [ -d "$_dir" ] && { filesdir="$_dir"; break; }
done || panic "failed to locate required files" done || panic "failed to locate required files"