minix/etc/Makefile

22 lines
801 B
Makefile
Raw Normal View History

2005-04-21 16:53:53 +02:00
ETC=/etc/
USRETC=/usr/etc/
2005-04-21 16:53:53 +02:00
FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp
FILES2=shadow
2005-04-25 15:50:26 +02:00
FILES3=daily dhcptags.conf rc
2005-04-21 16:53:53 +02:00
all::
clean::
install::
2005-04-25 15:50:26 +02:00
@echo "Installing /etc and /usr/etc.."
2005-04-21 16:53:53 +02:00
mkdir -p $(ETC)
for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then echo $$f exists; else cp $$f $(ETC); chmod 755 $(ETC)/$$f; fi; done
2005-04-25 15:50:26 +02:00
for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then echo $$f exists; else cp $$f $(ETC); chmod 600 $(ETC)/$$f; fi; done
2005-04-21 16:53:53 +02:00
@echo "Making hierarchy.."
./mtree.sh mtree/minix.tree
for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then echo $$f exists; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
2005-04-21 16:53:53 +02:00
cd /dev && /usr/src/commands/scripts/MAKEDEV.sh std
(cd ast && tar cf - .* ) | (cd /usr/ast && tar xf - )