aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2016-01-07 15:44:59 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-01-11 10:19:20 +0300
commitac67fc42fe4abe05adcd32245609fb83ab879e59 (patch)
tree9f26230b96ee6dccf6491395894cbb000d3d2144 /doc
parent93c2bc83420131ee7e20d435ea040a80511cca03 (diff)
doc: factor out asciidoc build rule
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.inc4
-rw-r--r--doc/implementers-guide/Makefile.am8
-rw-r--r--doc/process-guide/Makefile.am8
-rw-r--r--doc/users-guide/Makefile.am8
4 files changed, 13 insertions, 15 deletions
diff --git a/doc/Makefile.inc b/doc/Makefile.inc
new file mode 100644
index 000000000..8491b9213
--- /dev/null
+++ b/doc/Makefile.inc
@@ -0,0 +1,4 @@
+.adoc.html:
+ @mkdir -p $(top_srcdir)/doc/output
+ asciidoc -a data-uri -b html5 -a icons -a toc2 -a max-width=55em --out-file=$@ $<
+ mv $@ $(top_srcdir)/doc/output/$@
diff --git a/doc/implementers-guide/Makefile.am b/doc/implementers-guide/Makefile.am
index f0832f1e3..eb614e1ce 100644
--- a/doc/implementers-guide/Makefile.am
+++ b/doc/implementers-guide/Makefile.am
@@ -1,12 +1,10 @@
-TARGET = $(top_srcdir)/doc/output/implementers-guide.html
+include ../Makefile.inc
+
+TARGET = implementers-guide.html
EXTRA_DIST = implementers-guide.adoc
all-local: $(TARGET)
-$(TARGET): implementers-guide.adoc
- @mkdir -p $(top_srcdir)/doc/output
- asciidoc -a data-uri -b html5 -a icons -a toc2 -a max-width=55em --out-file=$@ $<
-
clean-local:
rm -f $(TARGET)
diff --git a/doc/process-guide/Makefile.am b/doc/process-guide/Makefile.am
index 54e2c1d2d..95915c088 100644
--- a/doc/process-guide/Makefile.am
+++ b/doc/process-guide/Makefile.am
@@ -1,12 +1,10 @@
-TARGET = $(top_srcdir)/doc/output/release-guide.html
+include ../Makefile.inc
+
+TARGET = release-guide.html
EXTRA_DIST = release-guide.adoc
all-local: $(TARGET)
-$(TARGET): release-guide.adoc
- @mkdir -p $(top_srcdir)/doc/output
- asciidoc -b html5 -a icons -a toc2 -a max-width=55em --out-file=$@ $<
-
clean-local:
rm -f $(TARGET)
diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am
index 383894a24..960a90f07 100644
--- a/doc/users-guide/Makefile.am
+++ b/doc/users-guide/Makefile.am
@@ -1,12 +1,10 @@
-TARGET = $(top_srcdir)/doc/output/users-guide.html
+include ../Makefile.inc
+
+TARGET = users-guide.html
EXTRA_DIST = users-guide.adoc
all-local: $(TARGET)
-$(TARGET): users-guide.adoc
- @mkdir -p $(top_srcdir)/doc/output
- asciidoc -a data-uri -b html5 -a icons -a toc2 -a max-width=55em --out-file=$@ $<
-
clean-local:
rm -f $(TARGET)