]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Figure: Makefile generates PNGs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 9 Feb 2009 09:43:49 +0000 (10:43 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Feb 2009 08:10:21 +0000 (09:10 +0100)
doc/Makefile

index 72c0e87813e53836488329de57e9fdf20d614e03..d4c41842d45f145c8192b885433a268ecbcc6755 100644 (file)
@@ -1,9 +1,17 @@
 FIGS = $(wildcard *.svg)
 
-all: $(FIGS:%.svg=%.pdf)
+TARGETS = $(FIGS:%.svg=%.pdf) $(FIGS:%.svg=%.png)
+
+all: $(TARGETS)
+
+clean:
+       rm $(TARGETS)
+
+%.png: %.svg
+       inkscape --export-area-drawing --export-png=$@ $<
 
 %.ps: %.svg
-       inkscape -$@ $<
+       inkscape --export-ps=$@ $<
 
 %-page.pdf: %.ps
        ps2pdf $< $@