NAME = setup VERSION = 2.7.21 SVNPATH = svn+ssh://svn.mageia.org/svn/soft/$(PACKAGE) LIST = csh.cshrc csh.login host.conf hosts.allow hosts.deny inputrc \ motd printcap protocols securetty services shells profile \ filesystems fstab resolv.conf hosts subdir = passgrp all: @for dir in $(subdir);do \ make -C $$dir all ;\ done clean: @for dir in $(subdir);do \ make -C $$dir clean ;\ done rm -f *~ \#*\# install: @for dir in $(subdir); do \ make -C $$dir install DESTDIR=$(DESTDIR);\ done install -d -m 755 $(DESTDIR)/etc/ install -d -m 755 $(DESTDIR)/var/log/ for i in $(LIST); do \ cp -avf $$i $(DESTDIR)/etc/$$i; \ done chmod 0600 $(DESTDIR)/etc/securetty echo -n '' > $(DESTDIR)/var/log/lastlog echo -n '' > $(DESTDIR)/etc/mtab dist: @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz @echo "The archive is at $(NAME)-$(VERSION).tar.xz"