Added solution to avoid checking in manpages. Just run "make" and we'll build

docs before python setup.py.   Seems reasonable to let Makefile drive
This commit is contained in:
Michael DeHaan 2012-02-28 04:15:52 -05:00
commit 55d256d82a
4 changed files with 10 additions and 341 deletions

View file

@ -5,6 +5,8 @@ ASCII2HTMLMAN = a2x -D docs/html/man/ -d manpage -f xhtml
MANPAGES := docs/man/man1/ansible.1 docs/man/man5/ansible-modules.5 docs/man/man5/ansible-playbook.5
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
all: clean python
docs: manuals
manuals: $(MANPAGES)
@ -28,5 +30,13 @@ clean:
find ./docs/ -type f -name "*.xml" -delete
find . -type f -name "#*" -delete
python: docs
python setup.py build
install: docs
python setup.py install
.PHONEY: docs manual clean pep8
vpath %.asciidoc docs/man/man1