Readded after corruption
authorTim Pope <code@tpope.net>
Thu, 13 Nov 2003 03:15:46 +0000 (03:15 +0000)
committerTim Pope <code@tpope.net>
Thu, 13 Nov 2003 03:15:46 +0000 (03:15 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..0b08d71
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,98 @@
+SRCDIR=mlastyle
+TEXMFDIR=`if id|grep '^uid=0' >/dev/null; then kpsewhich --expand-path='$$TEXMFLOCAL'; else kpsewhich --expand-path='$$HOMETEXMF'; fi`
+INSTALLDIR=$(TEXMFDIR)/tex/latex/mlastyle
+DOCDIR=$(TEXMFDIR)/doc/latex/mlastyle
+BSTDIR=$(TEXMFDIR)/bst/mlastyle
+VERSION=`grep '^\\\\def\\\\fileversion' mlastyle.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'`
+LATEX=latex
+PDFLATEX=pdflatex
+DVIPS=dvips
+MAKEINDEX=/usr/bin/makeindex
+
+
+.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf
+.PHONY: clean distclean tar zip install
+
+%.ind: %.idx
+       $(MAKEINDIX) -s gglo.ist -o $@ $<
+       $(MAKEINDEX) -s gind.ist $<
+
+%.idx: %.dtx
+       $(LATEX) $<
+
+%.dvi: %.dtx %.ind
+       $(LATEX) $*.dtx
+       $(LATEX) $*.dtx
+
+%.sty: %.ins %.dtx
+       $(LATEX) $*.ins
+       $(LATEX) $<
+
+#.dtx.dvi:
+#      $(LATEX) $<
+#      $(LATEX) $<
+#      $(MAKEINDEX) -s gind.ist $(*D)/$(*F)
+#      $(MAKEINDEX) -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
+#      $(LATEX) $<
+
+%.ps: %.dvi
+       $(DVIPS) -o $@ $<
+
+%.pdf: %.dtx %.ind
+       $(PDFLATEX) $*.dtx
+       $(PDFLATEX) $*.dtx
+
+target: mlastyle.sty mlastyle.dvi
+
+all: mlastyle.sty mlastyle.dvi mlastyle.pdf mlastyle.ps zip tar
+
+mlastyle: mlastyle.sty
+
+clean:
+       rm -f *.glo *.gls *.idx *.ilg *.ind *.toc *.log *.aux *.blg *.bbl
+       rm -f *~
+
+distclean: clean
+       rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf
+
+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
+       zip -r mlastyle.zip tex doc source bibtex
+       rm -rf tex doc source bibtex
+
+
+install: all
+       if [ ! -d $(INSTALLDIR) ]; then mkdirhier $(INSTALLDIR); fi
+       if [ ! -d $(DOCDIR) ]; then mkdirhier $(DOCDIR); fi
+       if [ ! -d $(BSTDIR) ]; then mkdirhier $(BSTDIR); fi
+       install -m644 mlastyle.sty $(INSTALLDIR)
+       install -m644 mlastyle.bst $(BSTDIR)
+       install -m644 mlastyle.dvi $(DOCDIR)
+       texhash
+
+ausgabe:
+       @echo "Please copy mlastyle.sty to a directory"
+       @echo "in the LaTeX search path"
+
+
+mlastyle.sty: mlastyle.ins mlastyle.dtx
+
+mlastyle.dvi: mlastyle.sty
+