source: pyyaml/trunk/Makefile @ 330

Revision 330, 824 bytes checked in by xi, 6 years ago (diff)

Share data files between Py2 and Py3 test suites.

Line 
1
2.PHONY: default build buildext force forceext install installext test testext dist clean
3
4PYTHON=/usr/bin/python
5TEST=
6PARAMETERS=
7
8build:
9        ${PYTHON} setup.py build ${PARAMETERS}
10
11buildext:
12        ${PYTHON} setup.py --with-libyaml build ${PARAMETERS}
13
14force:
15        ${PYTHON} setup.py build -f ${PARAMETERS}
16
17forceext:
18        ${PYTHON} setup.py --with-libyaml build -f ${PARAMETERS}
19
20install:
21        ${PYTHON} setup.py install ${PARAMETERS}
22
23installext:
24        ${PYTHON} setup.py --with-libyaml install ${PARAMETERS}
25
26test: build
27        ${PYTHON} tests/lib/test_build.py ${TEST}
28
29testext: buildext
30        ${PYTHON} tests/lib/test_build_ext.py ${TEST}
31
32testall:
33        ${PYTHON} setup.py test
34
35dist:
36        ${PYTHON} setup.py --with-libyaml sdist --formats=zip,gztar
37
38windist:
39        ${PYTHON} setup.py --with-libyaml bdist_wininst
40
41clean:
42        ${PYTHON} setup.py --with-libyaml clean -a
Note: See TracBrowser for help on using the repository browser.