freebsd-dev/release/picobsd/custom/Makefile.mfs
Marcel Moolenaar 11017a687b Backout addition of -L switch to mtree. Using -L breaks the
build process in too many cases. Adding mtree to bootstrap-tools
to solve this breaks the upgrade path because mtree needs a
libc that has strtofflags and fflagstostr.
2000-07-23 16:33:00 +00:00

45 lines
836 B
Makefile

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