From 829abf2afeae20324bb9786cab40db3172c20e39 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Mon, 13 Oct 1997 18:56:51 +0000 Subject: added archive rule --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e000208..0c322dbf 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ ROOT=/ +VERSION=3.18 +CVSTAG = r$(subst .,-,$(VERSION)) + all: (cd src; make CFLAGS="$(CFLAGS)") @@ -19,5 +22,14 @@ install: chown root.root /var/run/netreport chmod og=rwx,o=rx /var/run/netreport -clean: - (cd src; make clean) +archive: + @cvs tag -F $(CVSTAG) + @rm -rf /tmp/initscripts-$(VERSION) + @mkdir /tmp/initscripts-$(VERSION) + @cvs export -r$(CVSTAG) -d /tmp/initscripts-$(VERSION) initscripts + @cd /tmp; tar czSpf initscripts-$(VERSION).tar.gz initscripts-$(VERSION) + @rm -rf /tmp/initscripts-$(VERSION) + @cp /tmp/initscripts-$(VERSION).tar.gz . + @rm -f /tmp/initscripts-$(VERSION).tar.gz + @echo " " + @echo "The final archive is ./initscripts-$(VERSION).tar.gz." -- cgit