summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/circuit_macros/doc/Makefile')
-rw-r--r--graphics/circuit_macros/doc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/circuit_macros/doc/Makefile b/graphics/circuit_macros/doc/Makefile
index fb7ed9bc93..1abd51504e 100644
--- a/graphics/circuit_macros/doc/Makefile
+++ b/graphics/circuit_macros/doc/Makefile
@@ -67,7 +67,7 @@ M4LIBS = $(MODE).m4
$(DOC).pdf:
touch mode.tex
-if grep -q tikz mode.tex ; then true ; else \
- make clean ; printf "\\usepackage{tikz}\n" > mode.tex ; fi
+ rm mode.tex; make MODE=tikz clean mode.tex ; fi
make MODE=pgf PIC="dpic -g" LATEX=pdflatex SFX=pdf \
POST="; printf '\\\\vspace*{-0.5\\\\baselineskip}\\n'" \
$(DOC).pdf
@@ -113,6 +113,8 @@ mode.tex:
-if test "$(MODE)" = "pstricks" ; then \
printf "\\usepackage{pstricks}\n" > mode.tex ; else \
printf "\\usepackage{tikz}\n" > mode.tex ; fi
+ printf "\\def\\Version{" >> mode.tex
+ sed -e 's/$$/}/' Version.tex >> mode.tex
heading.tex:
printf '\\documentclass{article}\n' > heading.tex