Got things ready for a new release.
[rfk-inform.git] / Makefile
index e8e92e42e9c607a158046d323699c85d408d1f9c..2dafb41069bdd2611034a58d1b2df928bf3fe83b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = r7
+VERSION = r8
 BINNAME = kitten
 EXTENSION = .z5
 
@@ -15,18 +15,10 @@ nki:
        $(PERL) nki2inf.pl *.nki > nki.inf
 
 dist: distclean
-       mkdir $(DISTDIR)
-       @for file in `ls`; do \
-               if test $$file != $(DISTDIR); then \
-                       cp -rp $$file $(DISTDIR)/$$file; \
-               fi; \
-       done
-       tar chof $(DISTDIR).tar $(DISTDIR)
-       gzip -f --best $(DISTDIR).tar
-       rm -rf $(DISTDIR)
+       git archive --format=tgz --prefix $(DISTDIR)/ HEAD -o $(DISTDIR).tar.gz
        @echo
        @echo "$(DISTDIR).tar.gz created"
-       @echo 
+       @echo
 
 clean:
        rm -f *core *sav *$(EXTENSION) nki.inf