From b1679b503c6978d0600edb11906a19a57518ddda Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 20 Apr 2018 07:25:31 +0200 Subject: Makefile to generate pdfs from svgs --- .gitignore | 2 ++ 2d/Makefile | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 2d/Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..706b12b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build +2d/build 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 -- cgit v1.2.3