diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-03-22 11:33:45 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-03-22 11:34:06 -0700 |
commit | 704d27622b554b17e3055bfb3ef4d2ba1bf17a43 (patch) | |
tree | 54461f48c5a4548a17368e66ad270ecd91c838b6 /Makefile | |
parent | 9a55571725ec8f07be2168dc58e3b37a15f052dd (diff) |
Add include dependencies to HTML targets
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |