##// END OF EJS Templates
make: alter how we compute compiler flags for setup.py...
Augie Fackler -
r29003:c6b10855 stable
parent child Browse files
Show More
@@ -19,6 +19,10 b' TESTFLAGS ?= $(shell echo $$HGTESTFLAGS)'
19 19 # Set this to e.g. "mingw32" to use a non-default compiler.
20 20 COMPILER=
21 21
22 COMPILERFLAG_tmp_ =
23 COMPILERFLAG_tmp_${COMPILER} ?= -c $(COMPILER)
24 COMPILERFLAG=${COMPILERFLAG_tmp_${COMPILER}}
25
22 26 help:
23 27 @echo 'Commonly used make targets:'
24 28 @echo ' all - build program and documentation'
@@ -43,16 +47,16 b' all: build doc'
43 47 local:
44 48 $(PYTHON) setup.py $(PURE) \
45 49 build_py -c -d . \
46 build_ext $(COMPILER:%=-c %) -i \
47 build_hgexe $(COMPILER:%=-c %) -i \
50 build_ext $(COMPILERFLAG) -i \
51 build_hgexe $(COMPILERFLAG) -i \
48 52 build_mo
49 53 env HGRCPATH= $(PYTHON) hg version
50 54
51 55 build:
52 $(PYTHON) setup.py $(PURE) build $(COMPILER:%=-c %)
56 $(PYTHON) setup.py $(PURE) build $(COMPILERFLAG)
53 57
54 58 wheel:
55 FORCE_SETUPTOOLS=1 $(PYTHON) setup.py $(PURE) bdist_wheel $(COMPILER:%=-c %)
59 FORCE_SETUPTOOLS=1 $(PYTHON) setup.py $(PURE) bdist_wheel $(COMPILERFLAG)
56 60
57 61 doc:
58 62 $(MAKE) -C doc
General Comments 0
You need to be logged in to leave comments. Login now