summaryrefslogtreecommitdiff
path: root/2d/Makefile
blob: 36798b7cfb963ccba69fbd133c917ffab7d5f57c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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