# * MJOTEX - macro source files from mjotex
#
-# The repository has to be added to the TeX path, if this is not done
-# in ~/.bashrc or some equivalent place.
-export TEXINPUTS := $(TEXINPUTS):../..
-export BSTINPUTS := $(BSTINPUTS):../..
-
# The name of the document. Defaults to name of the parent directory
# (which in this case is also "article"), but is usually required.
PN = article
MJOTEX += mjo-listing.tex mjo-proof_by_cases.tex mjo-set.tex mjo-theorem.tex
MJOTEX += mjo-theorem-star.tex mjo-topology.tex mjo.bst
+# The repository has to be added to the TeX path, if this is not done
+# in ~/.bashrc or some equivalent place. In particular this is needed
+# for the kpsewhich command that immediately follows.
+export TEXINPUTS := $(TEXINPUTS):../..
+export BSTINPUTS := $(BSTINPUTS):../..
+
include $(shell kpsewhich GNUmakefile.mjo)