install new Makefile in /usr instead.
This commit is contained in:
parent
0d984b36ef
commit
0b364d00bc
1 changed files with 4 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
||||||
ETC=/etc/
|
ETC=/etc/
|
||||||
|
USR=/usr/
|
||||||
USRETC=/usr/etc/
|
USRETC=/usr/etc/
|
||||||
FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile \
|
FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile \
|
||||||
protocols rc services termcap ttytab utmp rc.cd binary_sizes \
|
protocols rc services termcap ttytab utmp rc.cd binary_sizes \
|
||||||
binary_sizes.big binary_sizes.xxl syslog.conf rc.daemons.dist \
|
binary_sizes.big binary_sizes.xxl syslog.conf rc.daemons.dist \
|
||||||
rs.inet rs.single make.conf system.conf
|
rs.inet rs.single make.conf system.conf
|
||||||
FILES2=shadow
|
FILES2=shadow
|
||||||
FILES3=daily dhcptags.conf rc Makefile
|
FILES3=daily dhcptags.conf rc
|
||||||
|
USRFILES=Makefile
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
|
|
||||||
|
@ -14,6 +16,7 @@ install::
|
||||||
mkdir -p $(ETC)
|
mkdir -p $(ETC)
|
||||||
@for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 755 $(ETC)/$$f; fi; done
|
@for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 755 $(ETC)/$$f; fi; done
|
||||||
@for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 600 $(ETC)/$$f; fi; done
|
@for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 600 $(ETC)/$$f; fi; done
|
||||||
|
@for f in $(USRFILES); do cp usr/$$f $(USR)/$$f; chmod 644 $(USR)/$$f; done
|
||||||
@echo "Making hierarchy.."
|
@echo "Making hierarchy.."
|
||||||
sh mtree.sh mtree/minix.tree
|
sh mtree.sh mtree/minix.tree
|
||||||
@for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
|
@for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
|
||||||
|
|
Loading…
Reference in a new issue