restructure
This commit is contained in:
parent
4b5645f3b0
commit
d1631da402
8
Makefile
8
Makefile
@ -4,10 +4,10 @@ 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
|
||||
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
|
||||
|
||||
uninstall:
|
||||
rm -f ${DESTDIR}${BINDIR}/tinyramfs
|
||||
|
@ -84,7 +84,7 @@ prepare_environment()
|
||||
[ -f "$_file" ] && { . "$_file"; break; }
|
||||
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; }
|
||||
done || panic "failed to locate required files"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user