source: TI13-DataProvider/trunk/python_installer/Makefile @ 1052

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI13-DataProvider/trunk/python_installer/Makefile@1052
Revision 1052, 621 bytes checked in by spascoe, 13 years ago (diff)

Started experimenting with setuptools. Some packages are
downloaded automatically but it doesn't work out of the box for many
(e.g. pyxml and ScientificPython?). I'll probably have to include the tarballs
in svn.

Line 
1
2# For the moment build into my directory
3PREFIX = /disks/glue1/spascoe/python
4
5PYTHON_TARBALL := $(wildcard Python-*.tgz)
6PYTHON_DIST := $(basename $(PYTHON_TARBALL))
7
8CONFIG_OPTS = --prefix=$(PREFIX) #Maybe not needed: --enable-shared
9
10build: $(PYTHON_DIST)/Makefile
11        make -C $(PYTHON_DIST)
12
13install: build
14        make -C $(PYTHON_DIST) install
15        @echo $(PYTHON_DIST) has been installed at $(PREFIX).
16
17clean:
18        rm -rf $(PYTHON_DIST)
19
20$(PYTHON_DIST)/configure: $(PYTHON_TARBALL)
21        tar -zmxf $(PYTHON_TARBALL)
22
23$(PYTHON_DIST)/Makefile: $(PYTHON_DIST)/configure
24        ( cd $(PYTHON_DIST) ; \
25        ./configure $(CONFIG_OPTS) ; \
26        cd .. )
27
28
Note: See TracBrowser for help on using the repository browser.