diff options
author | nalin <nalin> | 2001-04-02 15:13:33 +0000 |
---|---|---|
committer | nalin <nalin> | 2001-04-02 15:13:33 +0000 |
commit | f003b6a9806e42f1ed75c76c1049aaa530bc10e1 (patch) | |
tree | 105f2fef33407386ccd2c24f2b3259bc5b23fba4 | |
parent | 95f9b90d2d81c897a99a13336dbdaf6354ee2c6b (diff) | |
download | pomatic-f003b6a9806e42f1ed75c76c1049aaa530bc10e1.tar.gz pomatic-f003b6a9806e42f1ed75c76c1049aaa530bc10e1.tar.xz pomatic-f003b6a9806e42f1ed75c76c1049aaa530bc10e1.zip |
add archive target
-rw-r--r-- | Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,11 +1,14 @@ .SUFFIXES: .x .c .o +VERSION=$(shell grep ^Version: pomatic.spec | cut -f2 -d' ') +CVSTAG=pomatic-$(shell echo $(VERSION) | sed 's^\.^-^g') + bindir=/usr/bin libdir=/usr/lib mandir=/usr/share/man all: pomatic -CFLAGS=-ggdb -Wall +CFLAGS=-Wall LDFLAGS=-lfl .o: @@ -22,3 +25,16 @@ install: all mkdir -p $(DESTDIR)$(mandir)/man1 install -m755 pomatic convert-locale $(DESTDIR)$(bindir)/ install -m644 pomatic.1 $(DESTDIR)$(mandir)/man1 + +dist: archive + +archive: + @cvs tag -cF $(CVSTAG) + @rm -rf /tmp/pomatic-$(VERSION) /tmp/pomatic + @cd /tmp; cvs export -r$(CVSTAG) pomatic; mv pomatic pomatic-$(VERSION) + @cd /tmp; tar czSpf pomatic-$(VERSION).tar.gz pomatic-$(VERSION) + @rm -rf /tmp/pomatic-$(VERSION) + @cp /tmp/pomatic-$(VERSION).tar.gz . + @rm -f /tmp/pomatic-$(VERSION).tar.gz + @echo "" + @echo "The final archive is ./pomatic-$(VERSION).tar.gz." |