From: Philippe Chauvat Date: Fri, 7 Dec 2012 15:28:10 +0000 (+0100) Subject: Makefile for svg images X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35e5ce5c977b7fd1e3e8487b195cade51c4b7c5c;p=bacula%2Fdocs Makefile for svg images --- 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