MAKEINDEX=/usr/bin/makeindex
-.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf
+.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf .ind .idx .gls .glo
.PHONY: clean distclean tar zip install target
%.ind: %.idx
- $(MAKEINDIX) -s gglo.ist -o $@ $<
- $(MAKEINDEX) -s gind.ist $<
+ $(MAKEINDEX) -s gglo.ist -o $*.gls $*.glo
+ $(MAKEINDEX) -s gind.ist -o $*.ind $*.idx
%.idx: %.dtx
$(LATEX) $<
-%.dvi: %.dtx %.ind
+%.dvi: %.sty %.dtx %.ind
$(LATEX) $*.dtx
$(LATEX) $*.dtx
%.sty: %.ins %.dtx
$(LATEX) $*.ins
- $(LATEX) $<
#.dtx.dvi:
# $(LATEX) $<
$(PDFLATEX) $*.dtx
$(PDFLATEX) $*.dtx
-target: mlastyle.sty mlastyle.dvi
+target: mlastyle.sty mlastyle.dvi instructions
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 *~
+ rm -f *.glo *.gls *.idx *.ilg *.ind *.toc *.log *.aux *.blg *.bbl *~
distclean: clean
rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf
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 -f mlastyle.zip
zip -r mlastyle.zip tex doc source bibtex
rm -rf tex doc source bibtex
install -m644 mlastyle.dvi $(DOCDIR)
texhash
-ausgabe:
- @echo "Please copy mlastyle.sty to a directory"
+instructions:
+ @echo "Now run make install, or copy mlastyle.sty to a directory"
@echo "in the LaTeX search path"