@ -24,8 +24,8 @@ OS = $(shell uname -s)
# directory of the target file ($@), kinda like `dirname`.
# directory of the target file ($@), kinda like `dirname`.
MANPAGES := docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1 docs/man/man1/ansible-pull.1 docs/man/man1/ansible-doc.1 docs/man/man1/ansible-galaxy.1 docs/man/man1/ansible-vault.1
MANPAGES := docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1 docs/man/man1/ansible-pull.1 docs/man/man1/ansible-doc.1 docs/man/man1/ansible-galaxy.1 docs/man/man1/ansible-vault.1
i f n e q ( $( shell which a 2x 2>/dev /null ) , )
i f n e q ( $( shell which a 2x 2>/dev /null ) , )
ASCII2MAN = a2x -D $( dir $@ ) -d manpage -f manpage $<
ASCII2MAN = a2x -L - D $( dir $@ ) -d manpage -f manpage $<
ASCII2HTMLMAN = a2x -D docs/html/man/ -d manpage -f xhtml
ASCII2HTMLMAN = a2x -L - D docs/html/man/ -d manpage -f xhtml
e l s e
e l s e
ASCII2MAN = @echo " ERROR: AsciiDoc 'a2x' command is not installed but is required to build $( MANPAGES) " && exit 1
ASCII2MAN = @echo " ERROR: AsciiDoc 'a2x' command is not installed but is required to build $( MANPAGES) " && exit 1
e n d i f
e n d i f