Code

Make dist rule more robust using '&&'; create .tar.gz.md5 file
authorJonas Fonseca <fonseca@diku.dk>
Fri, 1 Jun 2007 20:43:48 +0000 (22:43 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 1 Jun 2007 20:43:48 +0000 (22:43 +0200)
Makefile

index 0e42de61f0c927ba77db66549828f52c34b7495f..539ade09f822482137d042c950dd5e0d5ac6a8cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,7 @@ install-doc: install-doc-man install-doc-html
 clean:
        rm -rf manual.html-chunked $(TARNAME)
        rm -f $(PROGS) $(ALLDOC) core *.xml *.toc
-       rm -f *.spec tig-*.tar.gz
+       rm -f *.spec tig-*.tar.gz tig-*.tar.gz.md5
 
 spell-check:
        aspell --lang=en --check tig.1.txt tigrc.5.txt manual.txt
@@ -73,12 +73,13 @@ strip: all
        strip $(PROGS)
 
 dist: tig.spec
-       git-archive --format=tar --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar
-       @mkdir -p $(TARNAME)
-       @cp tig.spec $(TARNAME)
-       tar rf $(TARNAME).tar $(TARNAME)/tig.spec
+       @mkdir -p $(TARNAME) && \
+       cp tig.spec $(TARNAME)
+       git-archive --format=tar --prefix=$(TARNAME)/ HEAD > $(TARNAME).tar && \
+       tar rf $(TARNAME).tar $(TARNAME)/tig.spec && \
+       gzip -f -9 $(TARNAME).tar && \
+       md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5
        @rm -rf $(TARNAME)
-       gzip -f -9 $(TARNAME).tar
 
 rpm: dist
        rpmbuild -ta $(TARNAME).tar.gz