]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - release/picobsd/custom/Makefile.mfs
This commit was generated by cvs2svn to compensate for changes in r56101,
[FreeBSD/FreeBSD.git] / release / picobsd / custom / Makefile.mfs
1 #
2 # $FreeBSD$
3 #
4
5 DESTDIR?=${MFS_MOUNTPOINT}
6
7 SBIN_LINKS= bin stand
8 USR_LINKS= bin sbin libexec
9 PL_LOCALE_LINKS= pl polish
10 MY_DEVS= std tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 wd0s1h pty0 ttyd0 cuaa0 wd1 wd2 wd3 bpf0 bpf1 sa0 sa1
11
12 all: tree links
13
14 tree:
15         @echo "--- making tree"
16         mtree -deU -f mfs.mtree -p ${DESTDIR}
17
18 links: tree
19         @echo "--- making links"
20         (cd ${DESTDIR}; \
21                 for i in ${SBIN_LINKS}; \
22                 do \
23                         ln -s /sbin $${i}; \
24                 done; \
25                 cd var/run; \
26                 ln -s /dev/null log; \
27                 cd ../../usr; \
28                 for i in ${USR_LINKS}; \
29                 do \
30                         ln -s /sbin $${i}; \
31                 done; \
32                 cd share/misc;\
33                 ln -s /etc/termcap termcap; )
34
35
36 # We don't do it under 'all' because it's needed only on non-DEVFS systems
37 devnodes: tree
38         @echo "--- making device nodes"
39         (cd ${DESTDIR}/dev; \
40         ln -s /dev/MAKEDEV; \
41         ./MAKEDEV ${MY_DEVS}; \
42         rm MAKEDEV)
43
44 clean: