diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-06-23 18:58:06 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-06-23 18:58:06 +0200 |
commit | 5cf29bda38585c0ab6c92a76c681b7fa63d96202 (patch) | |
tree | efa5acaacfa43008fccc7ffe11aceeff3609a181 | |
parent | f8d7a03a140a6fed09f94843cde5af04c5e2b5f7 (diff) |
Makefile for the designs
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
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 + |