From b3d8df92a44aa1df24a0869d728b45b0baeaa54c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 12 Mar 2023 03:01:58 +0000 Subject: CTAN sync 202303120301 --- graphics/circuit_macros/examples/Makefile | 60 +++++++------------------------ 1 file changed, 12 insertions(+), 48 deletions(-) (limited to 'graphics/circuit_macros/examples/Makefile') diff --git a/graphics/circuit_macros/examples/Makefile b/graphics/circuit_macros/examples/Makefile index fd8ab4ea49..b6ccbe2942 100644 --- a/graphics/circuit_macros/examples/Makefile +++ b/graphics/circuit_macros/examples/Makefile @@ -15,8 +15,8 @@ # To test the file test.m4, type "make tst" if boxdims is used, otherwise # type "make tst1". In either case the file tst.ps is created. # -# There are a few extra examples in this directory. Process them one -# at a time, or type "make extras.pdf" +# There are more examples in the extras directory. Go to that +# directory and process them one at a time, or type "make". # # To debug a single diagram in a directory other than this examples # directory, copy this makefile and tst.tex to where you want to work, @@ -78,7 +78,8 @@ TEXPICS = \ Quantum.tex quick.tex \ random.tex Rectifiers.tex recycle.tex relaycoil.tex Relay.tex \ Resistors.tex Rotbox.tex \ - Schottky.tex sfg.tex shapes.tex ShiftR.tex Sierpinski.tex Sixpole.tex \ + Schottky.tex sfg.tex shadowed.tex shapes.tex ShiftR.tex Sierpinski.tex \ + Sixpole.tex \ Smithchart.tex Sources.tex SQUID.tex Switches.tex \ Tgate.tex Three.tex thyristor.tex TTLnand.tex Tubediags.tex \ UNO.tex ujt.tex Variable.tex Windings.tex worm.tex Xform.tex XOR.tex @@ -127,6 +128,8 @@ LTXFILE=printf "|documentclass[11pt]{article}\n\ .m4.tex: @touch $(DIMFILE) F_$*.dim $(M4) $(CONF) $(DIMFILE) F_$*.dim $*.m4 | $(PIC) $(MODE) > $*.tex +# $(M4) $(CONF) $(DIMFILE) F_$*.dim $*.m4 > $*.pic +# $(PIC) $(MODE) $*.pic > $*.tex .m4.dvi: @touch $(DIMFILE) F_$*.dim $(M4) pstricks.m4 $(DIMFILE) F_$*.dim $*.m4 | $(PIC) -p > $*.tex @@ -209,16 +212,16 @@ $(DOC).pdf: clean pdfmode $(DOC).tex files.tex header.tex rose.pdf: rose.m4 m4 pdf.m4 rose.m4 | dpic -d > rose.pdf -paletteDPV.svg: paletteDPV.m4 - m4 svg.m4 paletteDPV.m4 | dpic -v > paletteDPV.svg - keyboard.svg: keyboard.m4 m4 svg.m4 keyboard.m4 | dpic -v > keyboard.svg keyboard.pdf: keyboard.svg - convert keyboard.svg keyboard.pdf + -conv=`which convert` ; if test "`basename $$conv`" = "convert" ; then \ + convert keyboard.svg keyboard.pdf ; \ + else printf '.PS\n "keyboard.pdf requires imagemagick convert"\n.PE\n' \ + | dpic -d > keyboard.pdf ; fi -pics: $(TEXPICS) rose.pdf keyboard.pdf +pics: rose.pdf keyboard.pdf $(TEXPICS) touch pics $(DOC).ps: psmode $(DOC).dvi @@ -264,43 +267,6 @@ gpic: echopics: @echo $(TEXPICS) -XTRASRC=printf "|documentclass[11pt]{article}\n\ -|usepackage[dvipsnames]{xcolor}\n\ -|usepackage{times,boxdims,siunitx,amssymb,tikz,geometry}\n\ -|geometry{margin=0.5cm}\n\ -|begin{document}\n" | $(BS) - -extras: - ( for file in `ls *.m4` ; do \ - fbase=`basename $$file .m4` ; \ - if test "`grep -L $$fbase files.tex`" = "files.tex" ; then \ - echo $$fbase ; \ - fi ; \ - done ) | sed -e '/Ball/d' \ - -e '/ASME_Y14-5/d' -e '/FlowchartDefs/d' -e '/tubedefs/d' \ - -e '/debug1/d' -e '/debug2/d' \ - -e '/paletteSVG/d' \ - -e '/Consumption/d' -e '/rotatetext/d' -e '/windows/d' \ - > extras - -XBOXDIMS = Chuck - -extras.pdf: extras - @$(XTRASRC) > extras.tex - touch extras.dim - -for file in `cat extras` ; do \ - $(M4) pgf.m4 extras.dim $$file.m4 | $(PIC) -g > $$file.tex ; \ - printf "\n|input{$$file.tex}\n" | $(BS) >> extras.tex ; \ - printf "\n $$file.m4\n |pagebreak\n" | $(BS) >> extras.tex ; \ - done - printf "\n|end{document}\n" | $(BS) >> extras.tex - pdflatex extras - -for file in $(XBOXDIMS) ; do \ - rm -f $$file.tex ; \ - $(M4) pgf.m4 extras.dim $$file.m4 | $(PIC) -g > $$file.tex ; \ - done - pdflatex extras - testall: (cd mf; make) (cd mpost; make) @@ -321,13 +287,11 @@ clobber: clean for file in `ls *.tex` ; do \ nm=`echo $$file | sed -e "s/\(.*\)\.tex/\1/"` ; \ if test -s $$nm.m4 ; then rm -f $$nm.pic $$nm.tex ; fi ; done + (cd dpv; make clobber) # @if test -f distmakefile ; then make -f distmakefile clobber ; fi clean: @printf "\n\n examples clean:\n\n" - -if test -f extras ; then \ - for file in `cat extras` ; do rm -f $$file.pic $$file.tex ; done ; fi - rm -f extras extras.* rm -f core boxdims.tar.gz pics rm -f *.dvi *.aux *.log *.toc *.blg *.eps *.tif *.epsi eps *-mfpic* *.svg rm -f fig*.tex $(TEXPICS) *.roff *.int *.pic gpic.m4 test.tex xxx* *.fig -- cgit v1.2.3