diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pseudo/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/pseudo/Makefile | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/pseudo/Makefile b/Master/texmf-dist/doc/latex/pseudo/Makefile index 8b649a353f4..388a7bea2f9 100644 --- a/Master/texmf-dist/doc/latex/pseudo/Makefile +++ b/Master/texmf-dist/doc/latex/pseudo/Makefile @@ -1,5 +1,9 @@ +TARGETS=doc/pseudo.pdf doc/fig/readmefig.svg + LATEX=latexmk -norc -pdf -auxdir=build -outdir=build -FIGS=build/hilitefig.pdf build/pausefig.pdf +FIGS=build/hilitefig.pdf build/pausefig.pdf build/kwfig.pdf + +all: $(TARGETS) doc/pseudo.pdf: build/pseudo.pdf cp $< $@ @@ -16,6 +20,9 @@ build/hilitefig.pdf: doc/fig/hilitefig.tex pseudo.sty build/pausefig.pdf: doc/fig/pausefig.tex pseudo.sty $(LATEX) $< +build/kwfig.pdf: doc/fig/kwfig.tex pseudo.sty + $(LATEX) $< + pseudo.sty: VERSION LICENSE doc/pseudo.tex cat LICENSE | sed -e "s/^/% /" | sed -e "s/^% \$$/%/" > pseudo.sty echo "%" >> pseudo.sty @@ -31,3 +38,15 @@ pseudo.sty: VERSION LICENSE doc/pseudo.tex -e "/^\$$/d" \ -e "p" \ -e "}" >> pseudo.sty + +build/readmecode.tex: doc/fig/readmecode.tex + cp $< $@ + +build/readmefig.pdf: doc/fig/readmefig.tex build/readmecode.tex + $(LATEX) $< + +doc/fig/readmefig.svg: build/readmefig.pdf + pdf2svg $< $@ + +doc/fig/readmecode.tex: README.md + cat $< | sed -n -e "/\\begin{pseudo}\\*$$/,/\\end{pseudo}/p" > $@ |