Add instructions to the intro screen
[erdslangetjie.git] / Makefile
1 #fake Makefile for erdslangetjie, to support the common
2 # ./configure;make;make install
3
4 PYTHON = python
5
6 #build: Setup setup.py
7 build: setup.py
8         $(PYTHON) setup.py build
9
10 #install: Setup setup.py
11 install: setup.py
12         $(PYTHON) setup.py install
13
14 #Setup:
15 #       $(PYTHON) configure.py
16
17 test check tests:
18         $(PYTHON) run_tests.py
19
20 testall:
21         #python2.5 setup.py test
22         python2.7 setup.py test
23         #python3.1 setup.py test
24         make checkdocs
25
26 #docs:  install
27 #       cd docs/utils
28 #       $(PYTHON) makedocs.py
29
30 clean:
31         rm -rf build dist MANIFEST .coverage
32         rm -f erdslangetjie/*~
33         rm -rf bin develop-eggs eggs parts .installed.cfg erdslangetjie.egg-info
34         find . -name *.pyc -exec rm {} \;
35         find . -name *.swp -exec rm {} \;
36         $(PYTHON) setup.py clean
37
38 # push changes
39 push:
40         #bzr push lp:erdslangetjie
41         #svn commit
42         git commit
43
44 # commit changes
45 commit:
46         #bzr commit
47         git commit
48
49 #upload to pypi
50 upload:
51         make clean
52         #if you have your gpg key set up... sign your release.
53         #$(PYTHON) setup.py sdist upload --sign --identity="Your Name <youremail@example.com>" 
54         $(PYTHON) setup.py sdist upload
55
56 sdist:
57         make clean
58         make testall
59         $(PYTHON) setup.py sdist
60
61 checkdocs:
62         $(PYTHON) setup.py checkdocs -setuptools
63
64 showdocs:
65         $(PYTHON) setup.py showdocs -setuptools
66
67 coverage:
68         coverage run run_tests.py
69         coverage report -m
70
71