Skip to content

Commit

Permalink
Small changes on Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed May 31, 2011
1 parent c7f5a18 commit 96cf303
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
build: bootstrap develop test coverage

release: zip_docs
@python setup.py sdist upload
python setup.py sdist upload
@echo 'Released :)'

zip_docs: documentation
@cd docs/_build/html && zip -r docs.zip *
cd docs/_build/html && zip -r docs.zip *
@echo 'Docs are at docs/_build/html/docs.zip file'

bootstrap:
@pip install -r requirements.txt
pip install -r requirements.txt

develop:
@python -c 'from flaskext import mongoalchemy' 2>/dev/null || python setup.py develop
python -c 'from flaskext import mongoalchemy' 2>/dev/null || python setup.py develop

test: clean
@specloud --config=tests/nose.cfg
specloud --config=tests/nose.cfg

coverage:
@coverage html
coverage html

documentation: clean
@cd docs && make html
@firefox docs/_build/html/index.html
cd docs && make html

clean:
@echo 'Cleaning...'
@find . -name '*.pyc' -exec rm -f {} \;
@rm -rf cover .coverage docs/_build/* *.egg-info dist build
git clean -dfx

0 comments on commit 96cf303

Please sign in to comment.