aboutsummaryrefslogtreecommitdiff
path: root/pdf.mk
blob: a8425d71eb1b71626057ec08a59ffc0fe4dc216b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
RM = rm -f
INKSCAPE = inkscape

FIGS_SVG = $(wildcard *.svg)
FIGS_PDF = $(patsubst %.svg,%.pdf, $(FIGS_SVG))

%.pdf: %.svg
	$(INKSCAPE) -D $< -o $@

$(TARGET).pdf: $(TARGET).md $(FIGS_PDF)
	$(MD2LATEX) $(TARGET)

clean::
	$(RM) $(TARGET).html $(TARGET).pdf $(TARGET).tex $(FIGS_PDF)