Makefile
changeset 18056 7c9b07f0da73
parent 17927 9796d5437e72
child 18598 4723ccb62282
equal deleted inserted replaced
18050:5522a7951bd7 18056:7c9b07f0da73
     8 export PREFIX
     8 export PREFIX
     9 PYTHON=python
     9 PYTHON=python
    10 PURE=
    10 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 
       
    14 # Set this to e.g. "mingw32" to use a non-default compiler.
       
    15 COMPILER=
    13 
    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'
    17 	@echo '  install      - install program and man pages to PREFIX ($(PREFIX))'
    20 	@echo '  install      - install program and man pages to PREFIX ($(PREFIX))'
    31 	@echo '  make local && ./hg version'
    34 	@echo '  make local && ./hg version'
    32 
    35 
    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
    44 
    51 
    45 clean:
    52 clean: