]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - makefile
Add *.spl to the "make clean" list.
[mjotex.git] / makefile
index d9bd9d5f3a19f7ad0cc427d2ce7adaa0b0c86f61..eabe908839945305a694fe7552ebbb25fb9ed5dc 100644 (file)
--- 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