From: Brian Warner Date: Wed, 19 Sep 2007 19:28:30 +0000 (-0700) Subject: Makefile: use .built to only require one tahoe-compile pass X-Git-Tag: allmydata-tahoe-0.6.0~62 X-Git-Url: https://git.rkrishnan.org/simplejson/decoder.py.html?a=commitdiff_plain;h=a97cd074ff30cb8dde020de1cc4899c018ab2ecd;p=tahoe-lafs%2Ftahoe-lafs.git Makefile: use .built to only require one tahoe-compile pass --- diff --git a/.darcs-boringfile b/.darcs-boringfile index dd8fa277..f3952a58 100644 --- a/.darcs-boringfile +++ b/.darcs-boringfile @@ -87,3 +87,5 @@ ^src/allmydata/Crypto/[^/]*/.*\.so$ ^\.checked-deps$ +^\.built$ + diff --git a/Makefile b/Makefile index ac9d12b5..d4b61066 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,9 @@ endif TRIAL=$(PYTHON) -u "$(TRIALPATH)" --rterrors $(REACTOROPT) -build-deps: build +# build-deps wants setuptools to have been built first. It's easiest to +# accomplish this by depending upon the tahoe compile. +build-deps: .built mkdir -p "$(SUPPORTLIB)" PYTHONPATH="$(PYTHONPATH)$(PATHSEP)$(SUPPORTLIB)$(PATHSEP)." \ $(PYTHON) misc/dependencies/build-deps-setup.py install \ @@ -73,6 +75,10 @@ PP=PYTHONPATH="$(SRCPATH)$(PATHSEP)$(EGGSPATH)$(PATHSEP)$(PYTHONPATH)" make-version: $(PYTHON) misc/make-version.py "allmydata-tahoe" "src/allmydata/_version.py" +.built: + $(MAKE) build + touch .built + build: make-version $(PYTHON) ./setup.py build_ext -i chmod +x bin/allmydata-tahoe @@ -115,11 +121,11 @@ TEST=allmydata # use 'make test REPORTER=--reporter=bwverbose' from buildbot, to # suppress the ansi color sequences -test: build .checked-deps +test: .built .checked-deps $(PP) \ $(TRIAL) $(REPORTER) $(TEST) -test-figleaf: build .checked-deps +test-figleaf: .built .checked-deps rm -f .figleaf $(PP) \ $(TRIAL) --reporter=bwverbose-figleaf $(TEST) @@ -169,7 +175,7 @@ count-lines: @echo -n "TODO: " @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines -check-memory: build +check-memory: .built rm -rf _test_memory $(PP) \ $(PYTHON) src/allmydata/test/check_memory.py upload @@ -197,7 +203,7 @@ test-clean: diff allfiles.tmp.old allfiles.tmp.new clean: - rm -rf build _trial_temp _test_memory .checked-deps + rm -rf build _trial_temp _test_memory .checked-deps .built rm -f debian rm -f `find src/allmydata -name '*.so' -or -name '*.pyc'` rm -rf tahoe_deps.egg-info allmydata_tahoe.egg-info