From 704d27622b554b17e3055bfb3ef4d2ba1bf17a43 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 22 Mar 2015 11:33:45 -0700 Subject: Add include dependencies to HTML targets --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b43a641..be965ae 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,6 @@ release: build/pugixml-$(VERSION).tar.gz build/pugixml-$(VERSION).zip docs: docs/quickstart.html docs/manual.html -docs/%.html: docs/%.adoc - asciidoctor -b html5 $< -o $@ - build/pugixml-%: .FORCE | $(RELEASE) perl tests/archive.pl $@ $| @@ -72,4 +69,8 @@ $(BUILD)/%.o: % -include $(OBJECTS:.o=.d) +.SECONDEXPANSION: +docs/%.html: docs/%.adoc $$(shell sed -n 's/include\:\:\(.*\)\[.*/docs\/\1/p' docs/%.adoc) + asciidoctor -b html5 $< -o $@ + .PHONY: all test clean release .FORCE -- cgit v1.2.3