Remove .so files in clean.
[jelmer/dulwich-libgit2.git] / Makefile
index e26045339d6ddac533e529cfe0b36a297c04d66f..68ff708b89b99905ad61a44d02969e7a5b53cc53 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,22 @@
 PYTHON = python
 SETUP = $(PYTHON) setup.py
-TRIAL = trial
+TRIAL = $(shell which trial)
 
-all: build build-inplace
+all: build 
 
 build::
        $(SETUP) build
+       $(SETUP) build_ext -i
 
 install::
        $(SETUP) install
 
-check::
-       PYTHONPATH=. $(TRIAL) dulwich
+check:: build
+       PYTHONPATH=. $(PYTHON) $(TRIAL) dulwich
+
+check-noextensions:: clean
+       PYTHONPATH=. $(PYTHON) $(TRIAL) dulwich
 
 clean::
-       $(SETUP) clean
+       $(SETUP) clean --all
+       rm -f dulwich/*.so