Makefile
changeset 2285 080b9384d741
parent 2270 b53343c8d692
equal deleted inserted replaced
2265:dad84c052463 2285:080b9384d741
     1 VERSION=$(shell python setup.py --version)
     1 VERSION=$(shell python setup.py --version)
     2 
     2 
     3 PYTHON=python
     3 PYTHON=python
     4 
       
     5 help:
       
     6 	@echo 'Commonly used make targets:'
       
     7 	@echo '  deb-prepare - prepare the build of a debian package'
       
     8 
     4 
     9 all: help
     5 all: help
    10 
     6 
    11 deb-prepare:
     7 deb-prepare:
    12 	python setup.py sdist --dist-dir ..
     8 	python setup.py sdist --dist-dir ..
    25 
    21 
    26 HGTESTS=$(HGROOT)/tests
    22 HGTESTS=$(HGROOT)/tests
    27 
    23 
    28 help:
    24 help:
    29 	@echo 'Commonly used make targets:'
    25 	@echo 'Commonly used make targets:'
       
    26 	@echo '  deb-prepare        - prepare the build of a debian package'
    30 	@echo '  tests              - run all tests in the automatic test suite'
    27 	@echo '  tests              - run all tests in the automatic test suite'
    31 	@echo '  all-version-tests - run all tests against many hg versions'
    28 	@echo '  all-version-tests - run all tests against many hg versions'
    32 	@echo '  tests-%s           - run all tests in the specified hg version'
    29 	@echo '  tests-%s           - run all tests in the specified hg version'
    33 
    30 
    34 all: help
    31 all: help
    35 
    32 
    36 _check_hgroot:
    33 _check_hgroot:
    37 	ifeq ($(HGROOT),)
    34 ifeq ($(HGROOT),)
    38 	  $(error HGROOT is not set to the root of the hg source tree)
    35 	$(error HGROOT is not set to the root of the hg source tree)
    39 	endif
    36 endif
    40 
    37 
    41 tests: _check_hgroot
    38 tests: _check_hgroot
    42 	cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS)
    39 	cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS)
    43 
    40 
    44 # /!\ run outside of the compatibility branch output test will likely fails
    41 # /!\ run outside of the compatibility branch output test will likely fails