X-Git-Url: https://git.ctpug.org.za/?p=erdslangetjie.git;a=blobdiff_plain;f=Makefile;h=63ae52e20a481960c029d504a51728f1eb1cdc5d;hp=a8f26bb12c413a82034bd26b59cc2c08b4d43a0a;hb=HEAD;hpb=e9fc58543d2b9f385d0bf245828fdeea1b60c0ae diff --git a/Makefile b/Makefile index a8f26bb..63ae52e 100644 --- a/Makefile +++ b/Makefile @@ -1,71 +1,22 @@ -#fake Makefile for erdslangetjie, 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.7 setup.py test - #python3.1 setup.py test - make checkdocs - -#docs: install -# cd docs/utils -# $(PYTHON) makedocs.py +#Makefile for erdslangetjie, to help with the final release clean: - rm -rf build dist MANIFEST .coverage - rm -f erdslangetjie/*~ - rm -rf bin develop-eggs eggs parts .installed.cfg erdslangetjie.egg-info + rm -f bane_pyweek_16.zip bane_pyweek_16.tar.bz2 bane_pyweek_16_win.zip find . -name *.pyc -exec rm {} \; find . -name *.swp -exec rm {} \; - $(PYTHON) setup.py clean - -# push changes -push: - #bzr push lp:erdslangetjie - #svn commit - git commit - -# commit changes -commit: - #bzr commit - git 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 " - $(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 +android_zip: + rm -f bane_pyweek_16_android.zip + zip -r bane_pyweek_16.zip android.txt run_game.py main.py data/level* data/sounds/ data/screens data/sprites/ data/tiles/ erdslangetjie/*py -coverage: - coverage run run_tests.py - coverage report -m +dircopy: + mkdir -p bane_pyweek_16 + tar -cf - scripts data misc_stuff *.txt Makefile configure *py erdslangetjie/*py erdslangetjie/editor/*py | (cd bane_pyweek_16 && tar -xvpf -) +tarball: dircopy + tar -caf bane_pyweek_16.tar.bz2 bane_pyweek_16 + rm -rf bane_pyweek_16 +winzip: dircopy + zip -r bane_pyweek_16_win.zip bane_pyweek_16 + rm -rf bane_pyweek_16