X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=331c65cd70c266c3cef55ca9a6ed7278b1a94bee;hb=6e017b796214315c5df54cf94b2504e0cff2a711;hp=d9bd9d5f3a19f7ad0cc427d2ce7adaa0b0c86f61;hpb=7b6c4a0dba2844a0ecc1fd96a951f9c4c021f0a4;p=mjotex.git diff --git a/makefile b/makefile index d9bd9d5..331c65c 100644 --- a/makefile +++ b/makefile @@ -25,7 +25,15 @@ MJOTEX += mjo-theorem-star.tex mjo-topology.tex # Use kpsewhich (from the kpathsea suite) to find the absolute paths # of the bibtex/mjotex files listed in in $(BIBS)/$(MJOTEX). The SRCS # variable should contain all (Bib)TeX source files for the document. -SRCS = $(PN).tex $(shell kpsewhich $(BIBS)) $(shell kpsewhich $(MJOTEX)) +SRCS = $(PN).tex +ifdef BIBS +BIBPATHS = $(shell kpsewhich $(BIBS)) +SRCS += $(BIBPATHS) +endif +ifdef MJOTEX +MJOTEXPATHS = $(shell kpsewhich $(MJOTEX)) +SRCS += $(MJOTEXPATHS) +endif # The first target is the default, so put the PDF document first. @@ -118,7 +126,8 @@ check: # Clean up leftover junk. .PHONY: clean clean: - rm -f *.{aux,bbl,bcf,bib,blg,listing,lof,log,nav,out,pdf,snm,toc,xml} + rm -f *.{aux,bbl,bcf,bib,blg,listing,lof,log} + rm -f *.{nav,out,pdf,snm,spl,toc,xml} rm -rf dist/ # If this document will be published, the publisher isn't going to @@ -129,4 +138,4 @@ clean: .PHONY: dist dist: $(PN).bbl mkdir -p dist - cp $(SRCS) $(PN).bbl dist/ + cp $(SRCS) $(PN).bbl $(BIBPATHS) $(MJOTEXPATHS) dist/