The following mwe.tex creates a makefile, which is not working on FreeBSD; it's mostly taken from the pgfplots manual.


\tikzexternalize[mode=list and make]


\addplot {x^2};
\caption{Our first external graphics example}


It's compiled with pdflatex mwe.tex and the following makefile is generated.

ALL_FIGURE_NAMES=$(shell cat mwe.figlist)

allimages: $(ALL_FIGURES)
    @echo All images exist now. Use make -B to re-generate them.


include $(ALL_FIGURE_NAMES:%=%.dep)

    mkdir -p "$(dir $@)"
    touch "$@" # will be filled later.

    pdflatex -halt-on-error -interaction=batchmode -jobname "mwe-figure0" "\def\tikzexternalrealjob{mwe}\input{mwe}"

mwe-figure0.pdf: mwe-figure0.md5

which fails the call make -f mwe.makefile with the following output

/tmp/tmp.GXQ4YxVM [ make -f mwe.makefile                                                        ] 4:18 nachm.
make: "/tmp/tmp.GXQ4YxVM/mwe.makefile" line 9: Could not find .dep
make: Fatal errors encountered -- cannot continue
make: stopped in /tmp/tmp.GXQ4YxVM

FreeBSD has it's own implementation of make which is not fully compatible with the GNU implementation; the makefile generated by the externalize library is using more than the POSIX feature set of make.

Using the GNU make provided by FreeBSD the command gmake, the command gmake -f mwe.makefile generates the following output

mkdir -p "./"
touch "mwe-figure0.dep" # will be filled later.
pdflatex -halt-on-error -interaction=batchmode -jobname "mwe-figure0" "\def\tikzexternalrealjob{mwe}\input{mwe}"
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
All images exist now. Use make -B to re-generate them.
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.