20
20
#
21
21
22
22
#
23
- # Copyright (c) 2007, 2013 , Oracle and/or its affiliates. All rights reserved.
23
+ # Copyright (c) 2007, 2015 , Oracle and/or its affiliates. All rights reserved.
24
24
#
25
25
26
- PYTHON = /usr/bin/python2.6
26
+ PYTHON26 = /usr/bin/python2.6
27
+ PYTHON27 = /usr/bin/python2.7
28
+ PYTHON34 = /usr/bin/python3.4
27
29
28
30
all := TARGET = all
29
31
install := TARGET = install
@@ -49,33 +51,36 @@ PYLINT_VER_CMD = PYTHONPATH= /usr/bin/pkg info pkg:/developer/python/pylint | \
49
51
SUBDIRS =brand zoneproxy tsol
50
52
51
53
all : $(SUBDIRS )
52
- $(PYTHON ) setup.py build
54
+ $(PYTHON26 ) setup.py build
55
+ $(PYTHON27 ) setup.py build
53
56
54
57
clean : $(SUBDIRS )
55
- $(PYTHON ) setup.py clean
58
+ $(PYTHON27 ) setup.py clean
56
59
@cd pkg; pwd ; make clean
57
60
58
61
clobber : $(SUBDIRS )
59
- $(PYTHON ) setup.py clobber
62
+ $(PYTHON27 ) setup.py clobber
60
63
@cd pkg; pwd ; make clobber
61
64
62
65
#
63
66
# run pylint as part of the install target.
64
67
# it's the best way to ensure things stay pylint clean.
65
68
#
66
69
install : $(SUBDIRS )
67
- $(PYTHON ) setup.py install
70
+ $(PYTHON26 ) setup.py install
71
+ $(PYTHON27 ) setup.py install
68
72
69
73
lint :
70
- $(PYTHON ) setup.py lint
74
+ $(PYTHON27 ) setup.py lint
71
75
@cd zoneproxy; pwd ; make lint
72
76
73
77
clint :
74
- $(PYTHON ) setup.py clint
78
+ $(PYTHON27 ) setup.py clint
75
79
@cd zoneproxy; pwd ; make lint
76
80
77
81
pylint : install
78
- PYLINT_VER=$(PYLINT_VER_CMD:sh ) $(PYTHON ) setup.py pylint
82
+ PYLINT_VER=$(PYLINT_VER_CMD:sh ) $(PYTHON26 ) setup.py pylint
83
+ PYLINT_VER=$(PYLINT_VER_CMD:sh ) $(PYTHON27 ) setup.py pylint
79
84
80
85
#
81
86
# This rule propagates the current make target through all of the
@@ -88,15 +93,15 @@ $(SUBDIRS): FRC
88
93
packages : install pylint
89
94
@cd pkg; pwd ; $(MAKE ) $(TARGET ) check \
90
95
PATH=$$(hg root 2>/dev/null || git rev-parse --show-toplevel ) /proto/root_$$(uname -p ) /usr/bin:$$ PATH \
91
- PYTHONPATH=$$(hg root 2>/dev/null || git rev-parse --show-toplevel ) /proto/root_$$(uname -p ) /usr/lib/python2.6 /vendor-packages
96
+ PYTHONPATH=$$(hg root 2>/dev/null || git rev-parse --show-toplevel ) /proto/root_$$(uname -p ) /usr/lib/python2.7 /vendor-packages
92
97
93
98
test :
94
- $(PYTHON ) setup.py test
99
+ $(PYTHON27 ) setup.py test
95
100
96
101
test-verbose :
97
- $(PYTHON ) setup.py test -v
102
+ $(PYTHON27 ) setup.py test -v
98
103
99
104
test-generate :
100
- $(PYTHON ) setup.py test -g
105
+ $(PYTHON27 ) setup.py test -g
101
106
102
107
FRC :
0 commit comments