For /dev/mem, map in memory to be copied to memory's own address space
[minix3.git] / etc / Makefile
blob331e02d72193feb1714ff71fb9af93dc9cf34f56
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 @echo "Making user homedirs.."
24 for u in /usr/ast ~root; do cp ast/.[aepv]* $$u ; done
26 postinstall:
27 binsizes normal