From e2826dd44c7435056463ef8c1a1fefb6cc718a2b Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Thu, 16 Oct 2014 15:59:20 +0200 Subject: [PATCH] Makefile being required for image format generation --- Sda2/Ref/Fig/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Sda2/Ref/Fig/Makefile diff --git a/Sda2/Ref/Fig/Makefile b/Sda2/Ref/Fig/Makefile new file mode 100644 index 000000000..943e8fd00 --- /dev/null +++ b/Sda2/Ref/Fig/Makefile @@ -0,0 +1,24 @@ +#This Makefile has to be executed in a subdirectory +# "Generate": make -f ../Makefile all +# + + +FIGFILES=mavenIntro transitiveDep persistProvider classUser mapUser mapUserIntegrity \ +billing billingData billingMapJoined billingSql figureInherit + +%-0.pdf:../%.fig + ../../../../bin/fig2mpdf -l -m $< #&& touch $*.done + if [ -e $*.tex ]; then pdflatex $* && rm -f ../$*.pdf && mv $*.pdf ..; fi; + +../%.fig.pdf:../%.fig + fig2dev -L pstex $< | epstopdf -f > $<.pdf + +pdf:$(foreach figfile, $(FIGFILES), $(figfile)-0.pdf) $(foreach figfile, $(FIGFILES), ../$(figfile).fig.pdf) + +all: + mkdir -p Generate;cd Generate;export PATH=../../../../bin:${PATH}; $(MAKE) -f ../Makefile pdf # PATH contains additional tools + +clean: + rm -rf Generate $(foreach figfile, $(FIGFILES), $(figfile).pdf) $(foreach figfile, $(FIGFILES), $(figfile).fig.pdf) + +#end -- GitLab