summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-09-11 12:39:51 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-09-11 12:39:51 +0000
commit25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d (patch)
tree9afa5ad3fecc7aca66222da768ba0245ae479d65 /Makefile
downloadsetup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.gz
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.bz2
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.tar.xz
setup-25e03a3bb2c7bfbc1f3c177ee71c7f75683ebd9d.zip
move everything under trunk directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f821371
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,59 @@
+PACKAGE = setup
+VERSION = 2.7.8
+SVNPATH = svn+ssh://svn.mandriva.com/svn/soft/$(PACKAGE)
+
+LIST = csh.cshrc csh.login host.conf hosts.allow hosts.deny inputrc \
+ motd printcap profile.d protocols securetty services shells profile \
+ filesystems fstab resolv.conf hosts
+
+subdir = passgrp utils man
+
+FILES = $(subdir) $(LIST) Makefile ChangeLog
+
+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
+
+# rules to build a local distribution
+
+localdist: cleandist dir localcopy tar
+
+cleandist: clean
+ rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
+
+dir:
+ mkdir $(PACKAGE)-$(VERSION)
+
+localcopy:
+ tar c --exclude=.svn $(FILES) | tar x -C $(PACKAGE)-$(VERSION)
+
+tar:
+ tar cvjf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
+ rm -rf $(PACKAGE)-$(VERSION)
+
+# rules to build a public distribution
+
+dist: cleandist dir localcopy tar svntag
+
+svntag:
+ svn cp -m 'version $(VERSION)' $(SVNPATH)/trunk $(SVNPATH)/tags/v$(VERSION)