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

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

Initial import (3rd attempt).

This package is intended to allow DataProviders?? to create a NDG python installation with all dependent packages. It will be used initially to maintain the
definitive python installation on glue.badc.rl.ac.uk.

At present the Makefile simply unpacks, builds and installs Python.

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) --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.