root/mpi4py/trunk/Makefile

Revision 155, 0.9 kB (checked in by dalcinl, 3 years ago)

change makefile to optionally run all testsuite through mpiexec

  • Property svn:eol-style set to native
Line 
1 # -*- makefile -*-
2
3 .PHONY: default config build test install sdist clean \
4         install_home uninstall_home insthome uinsthome distclean
5
6 PYTHON = python
7
8 default: build
9
10 config: 
11         ${PYTHON} setup.py config ${CONFIGOPT}
12
13 build:
14         ${PYTHON} setup.py build ${BUILDOPT}
15
16 test:
17         ${MPIEXEC} ${PYTHON} tests/unittest/alltest.py
18
19 install: build
20         su -c '${PYTHON} setup.py install ${INSTALLOPT}'
21
22 sdist:
23         ${PYTHON} setup.py sdist ${SDISTOPT}
24
25 clean:
26         ${PYTHON} setup.py clean --all
27         -${RM} _configtest.* *.py[co]
28         -${MAKE} -C docs clean
29
30
31 insthome: install_home
32 install_home: build
33         ${PYTHON} setup.py install --home=${HOME}
34
35 uinsthome: uninstall_home
36 uninstall_home:
37         -${RM} -r ${HOME}/lib/python/mpi4py
38         -${RM} -r ${HOME}/lib/python/mpi4py-*-py*.egg-info
39
40 distclean: clean
41         -${RM} -r build  *.py[co]
42         -${RM} -r MANIFEST dist mpi4py.egg-info
43         -${MAKE} -C docs distclean
44         -${RM} `find . -name '*~'`
45         -${RM} `find . -name '*.py[co]'`
Note: See TracBrowser for help on using the browser.