summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-02-09 22:56:15 +0000
committerLars Wirzenius <liw@liw.fi>2012-02-09 22:56:15 +0000
commitc71b30d98b036a747f248f0ae68e316a2086a664 (patch)
tree03afde1f81f670062613f26890b10a95454954f6 /Makefile
parent1026e773893602cc9e1f064b441021714fa0438a (diff)
downloadsummain-c71b30d98b036a747f248f0ae68e316a2086a664.tar.gz
Change Makefile to use setup.py to do actual work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 58d10a0..fe02fbd 100644
--- a/Makefile
+++ b/Makefile
@@ -14,14 +14,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-all: summain.1
+all: _summain.so summain.1
-summain.1: summain.1.in
+_summain.so: _summainmodule.c setup.py
+ python setup.py build_ext -i
+
+summain.1: _summain.so summain.1.in
python summain --generate-manpage=summain.1.in > summain.1
check:
- python -m CoverageTestRunner
- rm .coverage
+ python setup.py check
clean:
- rm -rf *.pyc .coverage summain.1 build
+ python setup.py clean
+ rm -rf *.pyc .coverage summain.1 build _summain.so