summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-03-30 13:13:05 -0400
committerBrian Coca <brian.coca+git@gmail.com>2017-03-30 13:13:27 -0400
commit7cd7f544e0e28ae9727b6f5c5838f509e2bae138 (patch)
tree40f7379ef7f0ac8fd4cb30acfcdb10ffd389874b /Makefile
parent3642de9eccbad8661fcab62d9c2b5df0d20bf37c (diff)
downloadansible-7cd7f544e0e28ae9727b6f5c5838f509e2bae138.tar.gz
fixed man page generation so it works 'clean'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 67b75b2eec..cb9b219fdf 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ OS = $(shell uname -s)
# This doesn't evaluate until it's called. The -D argument is the
# directory of the target file ($@), kinda like `dirname`.
-MANPAGES := ./docs/man/man1/ansible*.1
+MANPAGES ?= $(patsubst %.asciidoc.in,%,$(wildcard ./docs/man/man1/ansible*.1.asciidoc.in))
ifneq ($(shell which a2x 2>/dev/null),)
ASCII2MAN = a2x -L -D $(dir $@) -d manpage -f manpage $<
ASCII2HTMLMAN = a2x -L -D docs/html/man/ -d manpage -f xhtml
@@ -302,9 +302,11 @@ deb-src-upload: deb-src
webdocs:
(cd docs/docsite/; CPUS=$(CPUS) make docs)
-docs: lib/ansible/cli/*.py
+generate_asciidoc: lib/ansible/cli/*.py
mkdir -p ./docs/man/man1/
PYTHONPATH=./lib ./docs/bin/generate_man.py
+
+docs: generate_asciidoc
make $(MANPAGES)
alldocs: docs webdocs