![tikzexternalize produce un archivo MAKE roto en FreeBSD](https://rvso.com/image/400381/tikzexternalize%20produce%20un%20archivo%20MAKE%20roto%20en%20FreeBSD.png)
Lo siguiente mwe.tex
crea un archivo MAKE que no funciona en FreeBSD; en su mayor parte está tomado del pgfplots
manual.
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize[mode=list and make]
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{axis}
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\caption{Our first external graphics example}
\end{figure}
\end{document}
Se compila pdflatex mwe.tex
y se genera el siguiente archivo MAKE.
ALL_FIGURE_NAMES=$(shell cat mwe.figlist)
ALL_FIGURES=$(ALL_FIGURE_NAMES:%=%.pdf)
allimages: $(ALL_FIGURES)
@echo All images exist now. Use make -B to re-generate them.
FORCEREMAKE:
include $(ALL_FIGURE_NAMES:%=%.dep)
%.dep:
mkdir -p "$(dir $@)"
touch "$@" # will be filled later.
mwe-figure0.pdf:
pdflatex -halt-on-error -interaction=batchmode -jobname "mwe-figure0" "\def\tikzexternalrealjob{mwe}\input{mwe}"
mwe-figure0.pdf: mwe-figure0.md5
que falla la llamada make -f mwe.makefile
con el siguiente resultado
/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
Respuesta1
FreeBSDtiene su propia implementación, make
la cual no es totalmente compatible con laÑUimplementación; el archivo MAKE generado por la externalize
biblioteca está utilizando más que elPOSIXconjunto de características de make
.
Utilizando elÑU make
proporcionado por FreeBSD el comando gmake
, el comando gmake -f mwe.makefile
genera el siguiente resultado
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.