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