2008-01-31 21:40:18 +05:30
|
|
|
BOOT= bootmisc fsck hostname localmount \
|
|
|
|
root swap sysctl urandom
|
2008-01-10 22:05:59 +05:30
|
|
|
DEFAULT= local netmount
|
2007-04-05 16:48:42 +05:30
|
|
|
|
2008-03-02 03:42:33 +05:30
|
|
|
LEVELDIR= ${DESTDIR}/${PREFIX}/etc/runlevels
|
2008-01-10 22:05:59 +05:30
|
|
|
BOOTDIR= ${LEVELDIR}/boot
|
|
|
|
DEFAULTDIR= ${LEVELDIR}/default
|
2007-11-19 22:12:28 +05:30
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
MK= ../mk
|
2008-01-11 21:33:38 +05:30
|
|
|
include ${MK}/sys.mk
|
2008-01-11 15:02:06 +05:30
|
|
|
include ${MK}/os.mk
|
2008-03-03 18:34:08 +05:30
|
|
|
include ${MK}/gitignore.mk
|
2008-01-11 15:02:06 +05:30
|
|
|
include Makefile.${OS}
|
|
|
|
include Makefile.${SUBOS}
|
|
|
|
|
2008-01-11 15:12:28 +05:30
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
|
|
|
if ! test -d "${BOOTDIR}"; then \
|
|
|
|
${INSTALL} -d ${BOOTDIR} || exit $$?; \
|
2008-03-03 02:44:01 +05:30
|
|
|
for x in ${BOOT}; do \
|
|
|
|
if test -n "${PREFIX}"; then \
|
|
|
|
grep -q "keyword .*noprefix" ${PREFIX}/etc/init.d/"$$x" && continue; \
|
|
|
|
fi; \
|
|
|
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${BOOTDIR}/"$$x" || exit $$?; \
|
|
|
|
done \
|
2008-01-11 15:12:28 +05:30
|
|
|
fi
|
|
|
|
if ! test -d "${DEFAULTDIR}"; then \
|
|
|
|
${INSTALL} -d ${DEFAULTDIR} || exit $$?; \
|
2008-03-03 02:44:01 +05:30
|
|
|
for x in ${DEFAULT}; do \
|
|
|
|
if test -n "${PREFIX}"; then \
|
|
|
|
grep -q "keyword .*noprefix" ${PREFIX}/etc/init.d/"$$x" && continue; \
|
|
|
|
fi; \
|
|
|
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
|
2008-01-11 15:12:28 +05:30
|
|
|
fi
|
|
|
|
|
|
|
|
clean:
|