X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=makefile;h=eabe908839945305a694fe7552ebbb25fb9ed5dc;hp=d9bd9d5f3a19f7ad0cc427d2ce7adaa0b0c86f61;hb=59e4fa4c0281befce512b366f66e0e92c1740e29;hpb=7b6c4a0dba2844a0ecc1fd96a951f9c4c021f0a4 diff --git a/makefile b/makefile index d9bd9d5..eabe908 100644 --- a/makefile +++ b/makefile @@ -25,7 +25,13 @@ 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 +SRCS += $(shell kpsewhich $(BIBS)) +endif +ifdef MJOTEX +SRCS += $(shell kpsewhich $(MJOTEX)) +endif # The first target is the default, so put the PDF document first. @@ -118,7 +124,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