-
-tar: all clean
- rm -f mlastyle.tar.gz
- tar czCf .. mlastyle.tar.gz \
- $(SRCDIR)/README $(SRCDIR)/Makefile \
- $(SRCDIR)/mlastyle.dtx \
- $(SRCDIR)/mlastyle.ins \
- $(SRCDIR)/mlastyle.dvi
-
-
-zip: all clean
- mkdirhier tex/latex/mlastyle/
- mkdirhier doc/latex/mlastyle/
- mkdirhier source/latex/mlastyle/
- mkdirhier bibtex/bst/mlastyle/
- cp *.sty tex/latex/mlastyle/
- cp mlastyle.dvi README doc/latex/mlastyle/
- cp mlastyle.dtx mlastyle.ins Makefile source/latex/mlastyle/
- cp *.bst bibtex/bst/mlastyle/
- -@rm -f mlastyle.zip
+ rm -rf $(LTXDIR)/* $(DOCDIR)/* $(SRCDIR)/* $(BSTDIR)/*
+ [ ! -d $(LTXDIR) ] || rmdir -p $(LTXDIR) $(DOCDIR) $(SRCDIR) $(BSTDIR)
+
+tar: mlastyle.sty mlastyle.dvi clean
+ mkdir mlastyle-$(VERSION)
+ rm -f mlastyle_$(VERSION).tar.gz
+ install -m644 *.dtx *.ins *.bst Makefile README mlastyle-$(VERSION)
+ $(FAKEROOT) tar czf mlastyle_$(VERSION).tar.gz \
+ mlastyle-$(VERSION)
+ rm -rf mlastyle-$(VERSION)
+
+zip: mlastyle.sty mlastyle.dvi clean
+ mkdirhier $(LTXDIR)
+ mkdirhier $(DOCDIR)
+ mkdirhier $(SRCDIR)
+ mkdirhier $(BSTDIR)
+ install -m644 *.sty $(LTXDIR)
+ install -m644 mlastyle.dvi $(DOCDIR)
+ [ ! -f mlastyle.pdf ] ||install -m644 mlastyle.pdf $(DOCDIR)
+ [ ! -f mlastyle.ps ] ||install -m644 mlastyle.ps $(DOCDIR)
+ install -m644 *.dtx *.ins *.bst Makefile README $(SRCDIR)
+ install -m644 *.bst $(BSTDIR)
+ rm -f mlastyle.zip