X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;fp=Makefile;h=e8e92e42e9c607a158046d323699c85d408d1f9c;hb=28d41783bb7ca4b69135d464eb5ae05ac2ff5f6e;hp=6364a5867057be0c8be364d4553438ff9fc69edd;hpb=d3d40341c4ffbc1954e78d265c3df5d99c2e7e56;p=rfk-inform.git diff --git a/Makefile b/Makefile index 6364a58..e8e92e4 100644 --- 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 +