Makefile
branchmercurial-3.6
changeset 1604 61dd08f4dc62
parent 1524 bfbd99b50f8f
child 1769 38d1463f3e0f
equal deleted inserted replaced
1601:15318c3460bf 1604:61dd08f4dc62
     1 PYTHON=python
       
     2 HG=`which hg`
       
     3 VERSION=$(shell python setup.py --version)
     1 VERSION=$(shell python setup.py --version)
     4 
     2 
     5 
     3 
     6 help:
     4 help:
     7 	@echo 'Commonly used make targets:'
     5 	@echo 'Commonly used make targets:'
     9 	@echo '  all-version-tests - run all tests against many hg versions'
     7 	@echo '  all-version-tests - run all tests against many hg versions'
    10 	@echo '  tests-%s           - run all tests in the specified hg version'
     8 	@echo '  tests-%s           - run all tests in the specified hg version'
    11 
     9 
    12 all: help
    10 all: help
    13 
    11 
    14 tests:
       
    15 	cd tests && $(PYTHON) run-tests.py --with-hg=$(HG) $(TESTFLAGS)
       
    16 
       
    17 test-%:
       
    18 	cd tests && $(PYTHON) run-tests.py --with-hg=$(HG) $(TESTFLAGS) $@
       
    19 
       
    20 tests-%:
       
    21 	@echo "Path to crew repo is $(CREW) - set this with CREW= if needed."
       
    22 	hg -R $(CREW) checkout $$(echo $@ | sed s/tests-//) && \
       
    23 	(cd $(CREW) ; $(MAKE) clean ) && \
       
    24 	cd tests && $(PYTHON) $(CREW)/tests/run-tests.py $(TESTFLAGS)
       
    25 
       
    26 all-version-tests: tests-1.3.1 tests-1.4.3 tests-1.5.4 \
       
    27                    tests-1.6.4 tests-1.7.5 tests-1.8 tests-tip
       
    28 
       
    29 deb-prepare:
    12 deb-prepare:
    30 	python setup.py sdist --dist-dir ..
    13 	python setup.py sdist --dist-dir ..
    31 	mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz
    14 	mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz
    32 	tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz
    15 	tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz
    33 	rm -rf ../mercurial-evolve_$(VERSION).orig
    16 	rm -rf ../mercurial-evolve_$(VERSION).orig
    34 	mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig
    17 	mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig
    35 	cp -r debian/ ../mercurial-evolve_$(VERSION).orig/
    18 	cp -r debian/ ../mercurial-evolve_$(VERSION).orig/
    36 	@cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd`
    19 	@cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd`
    37 
       
    38 .PHONY: tests all-version-tests