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

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

We will use setuputils, therefore all we need is ez_setup.py to fetch
most dependencies.

The --enable-shared configure option may not be necessary for the DeliveryService
after all therefore it's disabled for now.

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: $(PYTHON_DIST)/python
14        make -C $(PYTHON_DIST) install
15        @echo $(PYTHON_DIST) has been installed at $(PREFIX).
16        @echo You may need to add  $(PREFIX)/lib to LD_LIBRARY_PATH.
17
18clean:
19        rm -rf $(PYTHON_DIST)
20
21$(PYTHON_DIST)/configure: $(PYTHON_TARBALL)
22        tar -zmxf $(PYTHON_TARBALL)
23
24$(PYTHON_DIST)/Makefile: $(PYTHON_DIST)/configure
25        ( cd $(PYTHON_DIST) ; \
26        ./configure $(CONFIG_OPTS) ; \
27        cd .. )
28
29
30
Note: See TracBrowser for help on using the repository browser.