1999-12-10 21:52:18 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DESTDIR?=${MFS_MOUNTPOINT}
|
|
|
|
|
1999-12-20 02:16:55 +00:00
|
|
|
SBIN_LINKS= bin stand
|
1999-12-10 21:52:18 +00:00
|
|
|
USR_LINKS= bin sbin libexec
|
|
|
|
PL_LOCALE_LINKS= pl polish
|
2000-07-18 12:17:54 +00:00
|
|
|
MY_DEVS= std tun2 cuaa0 cuaa1 vty10 fd0 pty0 ttyd0 bpf0 sa0 ad0s1 ad0s1a
|
1999-12-10 21:52:18 +00:00
|
|
|
|
|
|
|
all: tree links
|
|
|
|
|
|
|
|
tree:
|
|
|
|
@echo "--- making tree"
|
2000-07-23 16:33:00 +00:00
|
|
|
@mtree -deU -f ${.CURDIR}/mfs.mtree -p ${DESTDIR} 2>&1 > /dev/null
|
1999-12-10 21:52:18 +00:00
|
|
|
|
|
|
|
links: tree
|
|
|
|
@echo "--- making links"
|
2000-07-18 12:17:54 +00:00
|
|
|
@(cd ${DESTDIR}; \
|
1999-12-20 02:16:55 +00:00
|
|
|
for i in ${SBIN_LINKS}; \
|
1999-12-10 21:52:18 +00:00
|
|
|
do \
|
2000-07-18 12:17:54 +00:00
|
|
|
ln -s sbin $${i}; \
|
1999-12-10 21:52:18 +00:00
|
|
|
done; \
|
|
|
|
cd var/run; \
|
|
|
|
ln -s /dev/null log; \
|
|
|
|
cd ../../usr; \
|
|
|
|
for i in ${USR_LINKS}; \
|
|
|
|
do \
|
2000-07-18 12:17:54 +00:00
|
|
|
ln -s ../sbin $${i}; \
|
1999-12-10 21:52:18 +00:00
|
|
|
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
|
|
|
|
@echo "--- making device nodes"
|
2000-07-18 12:17:54 +00:00
|
|
|
@(cd ${DESTDIR}/dev; \
|
1999-12-10 21:52:18 +00:00
|
|
|
ln -s /dev/MAKEDEV; \
|
|
|
|
./MAKEDEV ${MY_DEVS}; \
|
|
|
|
rm MAKEDEV)
|
|
|
|
|
|
|
|
clean:
|