From 5cf29bda38585c0ab6c92a76c681b7fa63d96202 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 23 Jun 2017 18:58:06 +0200 Subject: Makefile for the designs --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3995af0 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + +BUILDDIR = build + +PS_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%.ps,$(wildcard designs/*.yaml)) +PDF_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%.pdf,$(wildcard designs/*.yaml)) + +.PHONY: all ps pdf clean +all: pdf +ps: $(PS_TARGETS) +pdf: $(PDF_TARGETS) + +$(BUILDDIR)/%.ps: designs/%.yaml + mkdir -p ${BUILDDIR} + ./bin/render -o $@ $< + +$(BUILDDIR)/%.pdf: ${BUILDDIR}/%.ps + ps2pdf $< $@ + +clean: + rm -f ${BUILDDIR}/*.ps ${BUILDDIR}/*.pdf + -- cgit v1.2.3