# HG changeset patch # User Thomas Arendsen Hein # Date 1147190595 -7200 # Node ID 457e4247315d610182d426ef8c23db718b8f032e # Parent 9ea93ff67a73e579a5d54f1d7c796da9fe128006 New make targets: local: build extensions inplace (the former "all" target") all: "local" (for people who expect this) and build everything else install: install pre-built things (so root doesn't have to write to $HOME) install-home: use setup.py's --home option instead of --prefix diff -r 9ea93ff67a73 -r 457e4247315d Makefile --- a/Makefile Tue May 09 17:21:53 2006 +0200 +++ b/Makefile Tue May 09 18:03:15 2006 +0200 @@ -2,18 +2,30 @@ export PREFIX PYTHON=python -all: +all: local build doc + +local: $(PYTHON) setup.py build_ext -i -install: all - $(PYTHON) setup.py install --home="$(PREFIX)" - cd doc && $(MAKE) $(MFLAGS) install +build: + $(PYTHON) setup.py build + +doc: + $(MAKE) -C doc clean: -$(PYTHON) setup.py clean --all # ignore errors of this command find . -name '*.py[co]' -exec rm -f '{}' ';' $(MAKE) -C doc clean +install: all + $(PYTHON) setup.py install --prefix="$(PREFIX)" --force + cd doc && $(MAKE) $(MFLAGS) install + +install-home: all + $(PYTHON) setup.py install --home="$(HOME)" --force + cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install + dist: tests dist-notests dist-notests: doc @@ -25,9 +37,6 @@ test-%: cd tests && $(PYTHON) run-tests.py $@ -doc: - $(MAKE) -C doc +.PHONY: all local build doc clean install install-home dist dist-notests tests -.PHONY: all clean dist dist-notests tests doc -