@@ -4,3 +4,6 @@ VPATH=$(top_builddir)/doc/images
mscgen -T svg -i $^ -o $@
ASCIIDOC_FLAGS =-a data-uri -b html5 -a icons -a toc2 -a max-width=55em
+
+.adoc.html:
+ asciidoc $(ASCIIDOC_FLAGS) --out-file=$@ $<
\ No newline at end of file
@@ -5,8 +5,8 @@ TARGET = implementers-guide.html
EXTRA_DIST = $(SRC)
-all-local: $(SRC)
- asciidoc $(ASCIIDOC_FLAGS) --out-file=$(TARGET) $(SRC)
+doc_DATA = $(TARGET)
+$(TARGET): $(SRC)
clean-local:
rm -f $(builddir)/$(TARGET)
@@ -1,10 +1,15 @@
include ../Makefile.inc
-EXTRA_DIST = $(top_srcdir)/doc/process-guide/bylaws-guide.adoc \
- $(top_srcdir)/doc/process-guide/release-guide.adoc
+SRC = $(top_srcdir)/doc/process-guide/bylaws-guide.adoc \
+ $(top_srcdir)/doc/process-guide/release-guide.adoc
-all-local: bylaws-guide.html \
- release-guide.html
+TARGET = bylaws-guide.html \
+ release-guide.html
+
+EXTRA_DIST = $(SRC)
+
+doc_DATA = $(TARGET)
+$(TARGET): $(SRC)
clean-local:
rm -f $(builddir)/bylaws-guide.html
@@ -13,7 +18,5 @@ clean-local:
release-guide.html: $(top_srcdir)/doc/process-guide/release-guide.adoc \
$(top_srcdir)/doc/images/simple_release_git.svg \
$(top_srcdir)/doc/images/release_git.svg
- asciidoc $(ASCIIDOC_FLAGS) --out-file=$@ $<
bylaws-guide.html: $(top_srcdir)/doc/process-guide/bylaws-guide.adoc
- asciidoc $(ASCIIDOC_FLAGS) --out-file=$@ $<
@@ -17,8 +17,8 @@ endif
EXTRA_DIST = $(SRC) $(IMAGES)
-all-local: $(SRC)
- asciidoc $(ASCIIDOC_FLAGS) --out-file=$(TARGET) $(SRC)
+doc_DATA = $(TARGET)
+$(TARGET): $(SRC) $(IMAGES)
clean-local:
rm -f $(builddir)/$(TARGET)
Depend on the target not the src Suggested-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu> Signed-off-by: Mike Holmes <mike.holmes@linaro.org> --- doc/Makefile.inc | 3 +++ doc/implementers-guide/Makefile.am | 4 ++-- doc/process-guide/Makefile.am | 15 +++++++++------ doc/users-guide/Makefile.am | 4 ++-- 4 files changed, 16 insertions(+), 10 deletions(-)