From 95449a057ce7364f49a097bc3cec4b65571d70a1 Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Mon, 6 Jun 2011 10:32:41 +0300 Subject: [PATCH] swifty/doc: Add Makefile for converting files in PDF format. --- doc/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/Makefile diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..4e1d45f --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,20 @@ +# image conversions (.dia to .eps, .eps to .pdf) + +DIA = dia +INKSCAPE = inkscape +EPSTOPDF = epstopdf + +DIA_FILES = arch-overview.dia kernel-swift-arch.dia +EPS_FILES = $(DIA_FILES:.dia=.eps) $(SVG_FILES:.svg=.eps) +PDF_FILES = $(DIA_FILES:.dia=.pdf) $(SVG_FILES:.svg=.pdf) + +all: $(PDF_FILES) + +%.pdf: %.eps + $(EPSTOPDF) $< + +%.eps: %.dia + $(DIA) -t eps-pango -e $@ $< + +%.eps: %.svg + $(INKSCAPE) -E $@ $< -- 2.20.1