Code

Include autoconf file for 'make dist'
authorJonas Fonseca <fonseca@diku.dk>
Sun, 23 Sep 2007 21:43:08 +0000 (23:43 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 23 Sep 2007 21:43:08 +0000 (23:43 +0200)
Makefile

index 6f23166b6a99df2708ed1376c7abcfbf6b546628..cee61d8c287ee03c13170fde028639d9e7708f94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,13 +94,13 @@ spell-check:
 strip: $(PROGS)
        strip $(PROGS)
 
-dist: tig.spec
+dist: configure tig.spec
        @mkdir -p $(TARNAME) && \
-       cp tig.spec $(TARNAME) && \
+       cp tig.spec configure config.h.in aclocal.m4 $(TARNAME) && \
        echo $(VERSION) > $(TARNAME)/VERSION
        git archive --format=tar --prefix=$(TARNAME)/ HEAD | \
        tar --delete $(TARNAME)/VERSION > $(TARNAME).tar && \
-       tar rf $(TARNAME).tar $(TARNAME)/tig.spec $(TARNAME)/VERSION && \
+       tar rf $(TARNAME).tar `find $(TARNAME)/*` && \
        gzip -f -9 $(TARNAME).tar && \
        md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5
        @rm -rf $(TARNAME)