Erstmal zur vollständigen Verwirrung das Makefile.
BASENAME=table all: $(BASENAME)1.pdf $(BASENAME)2.pdf $(BASENAME)1.pdf: $(BASENAME)1.tex texout '$(BASENAME)1.tex' & sleep 1s && xelatex -shell-escape -interaction=nonstopmode '$(BASENAME)1.tex' $(BASENAME)2.pdf: $(BASENAME)2.tex texout '$(BASENAME)2.tex' & sleep 1s && xelatex -shell-escape -interaction=nonstopmode '$(BASENAME)2.tex' $(BASENAME)1.tex: $(BASENAME)1.Rnw Rscript -e "library(knitr);knit('$(BASENAME)1.Rnw')" $(BASENAME)2.tex: $(BASENAME)2.Rnw Rscript -e "library(knitr);knit('$(BASENAME)2.Rnw')" clean: rm -frv .out rm -fv $(BASENAME)1.tex rm -fv $(BASENAME)1.pdf rm -fv $(BASENAME)1.aux rm -fv $(BASENAME)1.log rm -fv $(BASENAME)2.tex rm -fv $(BASENAME)2.pdf rm -fv $(BASENAME)2.aux rm -fv $(BASENAME)2.log # this targets are not files .PHONY: clean all pdf
Kernproblem hier ist, dass ich jetzt zwei PDF-Dateien am Ende haben will. Das läuft irgendwie nicht.
Make behauptet die PDF-Regel wäre gescheitert, obwohl das PDF erzeugt wurde.
Output written on table1.pdf (2 pages). Transcript written on table1.log. Makefile:7: die Regel für Ziel „table1.pdf“ scheiterte make: *** [table1.pdf] Fehler 1