Commit 8bd647ea by William Tisäter

Add Makefile to ease development

parent 6c6b7e1c
...@@ -23,3 +23,7 @@ This requires a machine with Python 2.5 - 3.3 installed and all dependencies men ...@@ -23,3 +23,7 @@ This requires a machine with Python 2.5 - 3.3 installed and all dependencies men
The documentation can be re-generated by running epydoc from repository root. The documentation can be re-generated by running epydoc from repository root.
epydoc --config=epydoc.ini --no-private epydoc --config=epydoc.ini --no-private
For converting Markdown to reStructuredText used by PyPi we use pandoc.
[Read pandoc's install instructions](http://johnmacfarlane.net/pandoc/installing.html).
PANDOC := $(shell which pandoc)
VIRTUALENV := $(shell which virtualenv)
ifeq ($(PANDOC),)
$(warning No pandoc binary found)
endif
ifeq ($(VIRTUALENV),)
$(warning No virtualenv binary found)
endif
all: deps test doc
venv:
@virtualenv venv
@venv/bin/pip install tox nose epydoc
test: venv
@venv/bin/tox
doc: venv
@venv/bin/epydoc --config=epydoc.ini --no-private
@pandoc --from=markdown --to=rst --output=README.rst README.md
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment