Fixed Change History generation
authorTim Pope <code@tpope.net>
Sat, 15 Nov 2003 07:33:30 +0000 (07:33 +0000)
committerTim Pope <code@tpope.net>
Sat, 15 Nov 2003 07:33:30 +0000 (07:33 +0000)
Makefile

index ba493d16ddfde151ec2634f3dc7178e7ddf10478..a09258a737cac13db33de68a1d2023c77f2f2df6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,23 +10,22 @@ DVIPS=dvips
 MAKEINDEX=/usr/bin/makeindex
 
 
 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
 .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) $<
 
 
 %.idx: %.dtx
        $(LATEX) $<
 
-%.dvi: %.dtx %.ind
+%.dvi: %.sty %.dtx %.ind
        $(LATEX) $*.dtx
        $(LATEX) $*.dtx
 
 %.sty: %.ins %.dtx
        $(LATEX) $*.ins
        $(LATEX) $*.dtx
        $(LATEX) $*.dtx
 
 %.sty: %.ins %.dtx
        $(LATEX) $*.ins
-       $(LATEX) $<
 
 #.dtx.dvi:
 #      $(LATEX) $<
 
 #.dtx.dvi:
 #      $(LATEX) $<
@@ -42,15 +41,14 @@ MAKEINDEX=/usr/bin/makeindex
        $(PDFLATEX) $*.dtx
        $(PDFLATEX) $*.dtx
 
        $(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:
 
 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
 
 distclean: clean
        rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf
@@ -73,7 +71,7 @@ zip:  mlastyle.sty mlastyle.dvi clean
        cp mlastyle.dvi README doc/latex/mlastyle/
        cp mlastyle.dtx mlastyle.ins Makefile source/latex/mlastyle/
        cp *.bst bibtex/bst/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 -f mlastyle.zip
        zip -r mlastyle.zip tex doc source bibtex
        rm -rf tex doc source bibtex
 
        zip -r mlastyle.zip tex doc source bibtex
        rm -rf tex doc source bibtex
 
@@ -87,8 +85,8 @@ install: all
        install -m644 mlastyle.dvi $(DOCDIR)
        texhash
 
        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"
 
 
        @echo "in the LaTeX search path"