# variable should contain all (Bib)TeX source files for the document.
SRCS = $(PN).tex
ifdef BIBS
-SRCS += $(shell kpsewhich $(BIBS))
+BIBPATHS = $(shell kpsewhich $(BIBS))
+SRCS += $(BIBPATHS)
endif
ifdef MJOTEX
-SRCS += $(shell kpsewhich $(MJOTEX))
+MJOTEXPATHS = $(shell kpsewhich $(MJOTEX))
+SRCS += $(MJOTEXPATHS)
endif
.PHONY: dist
dist: $(PN).bbl
mkdir -p dist
- cp $(SRCS) $(PN).bbl dist/
+ cp $(SRCS) $(PN).bbl $(BIBPATHS) $(MJOTEXPATHS) dist/