freebsd-nq/release/picobsd/router/Makefile.mfs
1999-08-28 01:35:59 +00:00

42 lines
688 B
Makefile

#
# $FreeBSD$
#
DESTDIR?=/mnt
STAND_LINKS= bin sbin
USR_LINKS= bin sbin libexec
PL_LOCALE_LINKS= pl polish
MY_DEVS= std tun2 vty3 fd0 pty0 cuaa0 cuaa1 cuaa2
all: tree links
tree:
mtree -deU -f mfs.mtree -p ${DESTDIR}
links: tree
(cd ${DESTDIR}; \
for i in ${STAND_LINKS}; \
do \
ln -s /stand $${i}; \
done; \
cd var/run; \
ln -s /dev/null log; \
cd ../../usr; \
for i in ${USR_LINKS}; \
do \
ln -s /stand $${i}; \
done; \
cd share/misc;\
ln -s /etc/termcap termcap; )
# We don't do it under 'all' because it's needed only on non-DEVFS systems
devnodes: tree
(cd ${DESTDIR}/dev; \
ln -s /dev/MAKEDEV; \
./MAKEDEV ${MY_DEVS} ; \
rm MAKEDEV)
clean: