pygamegsoc12 / Makefile

#fake Makefile for alchemymadness, to support the common
# ./configure;make;make install

PYTHON = python

#build: Setup setup.py
build: setup.py
	$(PYTHON) setup.py build

#install: Setup setup.py
install: setup.py
	$(PYTHON) setup.py install

#Setup:
#	$(PYTHON) configure.py

test check tests:
	$(PYTHON) run_tests.py

testall:
	python2.5 setup.py test
	python2.6 setup.py test
	python3.1 setup.py test
	make checkdocs

#docs:	install
#	cd docs/utils
#	$(PYTHON) makedocs.py

clean:
	rm -rf build dist MANIFEST .coverage
	rm -f alchemymadness/*~
	rm -rf bin develop-eggs eggs parts .installed.cfg alchemymadness.egg-info
	find . -name *.pyc -exec rm {} \;
	find . -name *.swp -exec rm {} \;
	$(PYTHON) setup.py clean

# push changes
push:
	#bzr push lp:alchemymadness
	svn commit

# commit changes
commit:
	#bzr commit
	svn commit

#upload to pypi
upload:
	make clean
	#if you have your gpg key set up... sign your release.
	#$(PYTHON) setup.py sdist upload --sign --identity="Your Name <youremail@example.com>" 
	$(PYTHON) setup.py sdist upload

sdist:
	make clean
	make testall
	$(PYTHON) setup.py sdist

checkdocs:
	$(PYTHON) setup.py checkdocs -setuptools

showdocs:
	$(PYTHON) setup.py showdocs -setuptools

coverage:
	coverage run run_tests.py
	coverage report -m
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.