Missed some stuff
authorDavid Griffith <dave@661.org>
Fri, 12 Apr 2013 23:23:24 +0000 (16:23 -0700)
committerDavid Griffith <dave@661.org>
Fri, 12 Apr 2013 23:23:24 +0000 (16:23 -0700)
Makefile

index 6364a5867057be0c8be364d4553438ff9fc69edd..e8e92e42e9c607a158046d323699c85d408d1f9c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,24 @@ $(BINNAME): nki
 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)
+       @echo
+       @echo "$(DISTDIR).tar.gz created"
+       @echo 
+
 clean:
        rm -f *core *sav *$(EXTENSION) nki.inf
 
 distclean: clean
        rm -rf $(DISTDIR)
        rm -f $(DISTDIR).tar $(DISTDIR).tar.gz
+