X-Git-Url: http://git.tpope.net/?p=latex-mlastyle.git;a=blobdiff_plain;f=Makefile;h=ab16ecb886c3003f704dda449ecedbce732c5ed1;hp=209f348f1c6164b603c2a17a078cbc11602fc1d2;hb=c9ed160ff106b95272e4c0148d1b014e5546270d;hpb=0e52ebb9bdb2d0ebaef0ca47e234ef8dad7ef2f0 diff --git a/Makefile b/Makefile index 209f348..ab16ecb 100644 --- a/Makefile +++ b/Makefile @@ -7,32 +7,34 @@ SRCDIR=source/latex/mlastyle #VERSION=`grep '^\\\\def\\\\fileversion' mlastyle.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'` VERSION=`grep '^%<[a-z]*> *\[[0-9/]* *v' mlastyle.dtx | sed 's/^%<[a-z]*> *\[[0-9/]* *v\([-_.0-9a-z]*\).*/\1/'` LATEX=latex +BIBTEX=bibtex +MAKEINDEX=/usr/bin/makeindex PDFLATEX=pdflatex DVIPS=dvips -MAKEINDEX=/usr/bin/makeindex FAKEROOT=`[ -x /usr/bin/fakeroot ] && echo /usr/bin/fakeroot` .SUFFIXES: .sty .ins .dtx .dvi .ps .pdf .ind .idx .gls .glo .PHONY: clean distclean tar zip install target mlastyle instructions -%.ind: %.idx +%.bbl: %.bib + $(BIBTEX) $*.aux $(MAKEINDEX) -s gglo.ist -o $*.gls $*.glo $(MAKEINDEX) -s gind.ist -o $*.ind $*.idx -%.idx: %.dtx +%.bib: %.dtx $(LATEX) $< -%.dvi: %.sty %.dtx %.ind - $(LATEX) $*.dtx - $(LATEX) $*.dtx - %.sty: %.ins %.dtx $(LATEX) $*.ins +%.dvi: %.sty %.dtx %.bbl + $(LATEX) $*.dtx + $(LATEX) $*.dtx + %.ps: %.dvi $(DVIPS) -o $@ $< -%.pdf: %.dtx %.ind +%.pdf: %.sty %.dtx %.bbl $(PDFLATEX) $*.dtx $(PDFLATEX) $*.dtx @@ -47,11 +49,12 @@ mlastyle.sty: mlastyle.ins mlastyle.dtx mlastyle.dvi: mlastyle.sty clean: - rm -f *.glo *.gls *.idx *.ilg *.ind *.toc *.log *.aux *.blg *.bbl *~ + rm -f *.glo *.gls *.idx *.ilg *.ind *.toc *.log *.aux *.blg *.bib *.bbl *~ distclean: clean rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf - rm -rf tex doc source bibtex + rm -rf $(LTXDIR)/* $(DOCDIR)/* $(SRCDIR)/* $(BSTDIR)/* + [ ! -d $(LTXDIR) ] || rmdir -p $(LTXDIR) $(DOCDIR) $(SRCDIR) $(BSTDIR) tar: mlastyle.sty mlastyle.dvi clean mkdir mlastyle-$(VERSION) @@ -91,5 +94,6 @@ install: all 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 and mlastyle.bst to a directory." + @echo "in the BibTeX search path."