summaryrefslogtreecommitdiff
path: root/2d
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-04-20 07:25:31 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-04-20 07:25:31 +0200
commitb1679b503c6978d0600edb11906a19a57518ddda (patch)
tree80e5dc5f5ac3f6c9c2062ed4f6d947cc1aece095 /2d
parentcb567f9f3bc757141320895935ab2b459c53da57 (diff)
Makefile to generate pdfs from svgs
Diffstat (limited to '2d')
-rw-r--r--2d/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/2d/Makefile b/2d/Makefile
new file mode 100644
index 0000000..36798b7
--- /dev/null
+++ b/2d/Makefile
@@ -0,0 +1,25 @@
+
+SRCDIR = .
+BUILDDIR = build
+
+PDF_TARGETS = $(patsubst $(SRCDIR)/%.svg,$(BUILDDIR)/%.pdf,$(wildcard $(SRCDIR)/*.svg))
+
+.PHONY: all
+
+all: $(PDF_TARGETS) $(BUILDDIR)/duodecimal.pdf $(BUILDDIR)/minipack.pdf
+
+$(BUILDDIR)/%.pdf: %.svg
+ mkdir -p ${BUILDDIR}
+ inkscape --without-gui -A $@ --export-text-to-path $^
+
+$(BUILDDIR)/duodecimal.pdf: $(BUILDDIR)/duodecimal-*.pdf
+ pdfjoin -o $@ \
+ $(BUILDDIR)/duodecimal-basic-44x67-1.pdf \
+ $(BUILDDIR)/duodecimal-basic-44x67-2.pdf \
+ $(BUILDDIR)/duodecimal-basic-44x67-3.pdf \
+ $(BUILDDIR)/duodecimal-backs-44x67.pdf
+
+$(BUILDDIR)/minipack.pdf: $(BUILDDIR)/minipack-*.pdf
+ pdfjoin -o $@ \
+ $(BUILDDIR)/minipack-basic-cards.pdf \
+ $(BUILDDIR)/minipack-grid-back.pdf