From 87e1a2ba7a942867dc4a4027e3e3e4b87bf1dfcc Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 4 Sep 2016 16:47:59 +0200 Subject: [PATCH] Makefile done. --- _graph_templates/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/_graph_templates/Makefile b/_graph_templates/Makefile index 6ed2e4e..f0d354f 100644 --- a/_graph_templates/Makefile +++ b/_graph_templates/Makefile @@ -1,3 +1,16 @@ +SRCDIR=. +BUILDDIR=../graph_templates -#xmllint -format -xinclude %b +SRC=$(wildcard $(SRCDIR)/*.xml) +BUILD=$(SRC:$(SRCDIR)/%.xml=$(BUILDDIR)/%.xml) +all: templates + +templates: $(BUILD) + +$(BUILDDIR)/%.xml: $(SRCDIR)/%.xml + xmllint -format -xinclude -o $@ $< + +.PHONY: clean +clean: + -rm $(BUILD)