From 35e5ce5c977b7fd1e3e8487b195cade51c4b7c5c Mon Sep 17 00:00:00 2001 From: Philippe Chauvat Date: Fri, 7 Dec 2012 16:28:10 +0100 Subject: [PATCH] Makefile for svg images --- docs/images/svg/Makefile.in | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/images/svg/Makefile.in b/docs/images/svg/Makefile.in index 9a602554..bfccb2b1 100644 --- a/docs/images/svg/Makefile.in +++ b/docs/images/svg/Makefile.in @@ -6,6 +6,7 @@ # INKSCAPE=inkscape INKSCAPE_FLAGS=-z +INKSCAPE_OUTPUT=>>./inkscape.log 2>&1 SVG_TO_PDF=-A SVG_TO_EPS=-E SVG_TO_PNG=-e @@ -36,7 +37,7 @@ $(PDFDIR): @mkdir $(PDFDIR) @echo "Done" %.pdf: %.svg - ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_PDF} $(PDFDIR)/$@ $< + ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_PDF} $(PDFDIR)/$@ $< $(INKSCAPE_OUTPUT) # # EPS images creation vpath %.pdf $(PDFDIR) @@ -47,7 +48,7 @@ $(EPSDIR): @mkdir $(EPSDIR) @echo "Done" %.eps: %.svg - ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_EPS} $(EPSDIR)/$@ $< + ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_EPS} $(EPSDIR)/$@ $< $(INKSCAPE_OUTPUT) # # PNG images creation vpath %.png $(PNGDIR) @@ -58,4 +59,17 @@ $(PNGDIR): @mkdir $(PNGDIR) @echo "Done" %.png: %.svg - ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_PNG} $(PNGDIR)/$@ $< + ${INKSCAPE} ${INKSCAPE_FLAGS} ${SVG_TO_PNG} $(PNGDIR)/$@ $< $(INKSCAPE_OUTPUT) + +clean: + @echo " " + @echo "Cleaning all generated images..." + @rm -rf $(PDFDIR) + @rm -rf $(PNGDIR) + @rm -rf $(EPSDIR) + @echo "All generated images cleaned." + @echo "Deleting log files" + @rm -f *.log + @echo "Everything cleaned up" + +distclean: clean \ No newline at end of file -- 2.39.5