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