##// END OF EJS Templates
makefile: allow local builds to work on windows/mingw32
Bryan O'Sullivan -
r18056:7c9b07f0 default
parent child Browse files
Show More
@@ -11,6 +11,9 b' PURE='
11 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
11 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
12 DOCFILES=mercurial/help/*.txt
12 DOCFILES=mercurial/help/*.txt
13
13
14 # Set this to e.g. "mingw32" to use a non-default compiler.
15 COMPILER=
16
14 help:
17 help:
15 @echo 'Commonly used make targets:'
18 @echo 'Commonly used make targets:'
16 @echo ' all - build program and documentation'
19 @echo ' all - build program and documentation'
@@ -33,11 +36,15 b' help:'
33 all: build doc
36 all: build doc
34
37
35 local:
38 local:
36 $(PYTHON) setup.py $(PURE) build_py -c -d . build_ext -i build_hgexe -i build_mo
39 $(PYTHON) setup.py $(PURE) \
40 build_py -c -d . \
41 build_ext $(COMPILER:%=-c %) -i \
42 build_hgexe $(COMPILER:%=-c %) -i \
43 build_mo
37 env HGRCPATH= $(PYTHON) hg version
44 env HGRCPATH= $(PYTHON) hg version
38
45
39 build:
46 build:
40 $(PYTHON) setup.py $(PURE) build
47 $(PYTHON) setup.py $(PURE) build $(COMPILER:%=-c %)
41
48
42 doc:
49 doc:
43 $(MAKE) -C doc
50 $(MAKE) -C doc
General Comments 0
You need to be logged in to leave comments. Login now