3.1.3b tag.
[minix3.git] / etc / Makefile
blob6b5911163f9ab70df3c03b0c0da92c94a8c478c4
2 ETC=/etc/
3 USRETC=/usr/etc/
4 FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile protocols rc services termcap ttytab utmp rc.cd binary_sizes binary_sizes.big binary_sizes.xxl rc.rescue syslog.conf rc.daemons.dist rs.single make.conf drivers.conf
5 FILES2=shadow
6 FILES3=daily dhcptags.conf rc
8 all::
10 clean::
12 install::
13 @echo "Installing /etc and /usr/etc.."
14 mkdir -p $(ETC)
15 @for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 755 $(ETC)/$$f; fi; done
16 @for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 600 $(ETC)/$$f; fi; done
17 @echo "Making hierarchy.."
18 sh mtree.sh mtree/minix.tree
19 @for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
20 @echo "Making devices.."
21 p=`pwd` && cd /dev && sh $$p/../commands/scripts/MAKEDEV.sh null
22 p=`pwd` && cd /dev && sh $$p/../commands/scripts/MAKEDEV.sh std 2>/dev/null
23 install -o bin -g operator -m 755 crontab /usr/lib
24 @echo "Making user homedirs.."
25 for u in /usr/ast ~root; do cp ast/.[aepv]* $$u ; done
27 postinstall:
28 binsizes normal