Makefile
branchstable
changeset 542 ca5bb72d14ae
parent 531 b18b00036355
child 1524 bfbd99b50f8f
equal deleted inserted replaced
541:3859f8e7d0d1 542:ca5bb72d14ae
     1 PYTHON=python
     1 PYTHON=python
     2 HG=`which hg`
     2 HG=`which hg`
       
     3 VERSION=$(shell python setup.py --version)
       
     4 
     3 
     5 
     4 help:
     6 help:
     5 	@echo 'Commonly used make targets:'
     7 	@echo 'Commonly used make targets:'
     6 	@echo '  tests              - run all tests in the automatic test suite'
     8 	@echo '  tests              - run all tests in the automatic test suite'
     7 	@echo '  all-version-tests - run all tests against many hg versions'
     9 	@echo '  all-version-tests - run all tests against many hg versions'
    24 all-version-tests: tests-1.3.1 tests-1.4.3 tests-1.5.4 \
    26 all-version-tests: tests-1.3.1 tests-1.4.3 tests-1.5.4 \
    25                    tests-1.6.4 tests-1.7.5 tests-1.8 tests-tip
    27                    tests-1.6.4 tests-1.7.5 tests-1.8 tests-tip
    26 
    28 
    27 deb-prepare:
    29 deb-prepare:
    28 	python setup.py sdist --dist-dir ..
    30 	python setup.py sdist --dist-dir ..
    29 	mv -f ../hg-evolve-1.0.0.tar.gz ../mercurial-evolve_1.0.0.orig.tar.gz
    31 	mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz
    30 	tar xf ../mercurial-evolve_1.0.0.orig.tar.gz
    32 	tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz
    31 	rm -rf ../mercurial-evolve_1.0.0.orig
    33 	rm -rf ../mercurial-evolve_$(VERSION).orig
    32 	mv hg-evolve-1.0.0 ../mercurial-evolve_1.0.0.orig
    34 	mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig
    33 	cp -r debian/ ../mercurial-evolve_1.0.0.orig/
    35 	cp -r debian/ ../mercurial-evolve_$(VERSION).orig/
    34 	@cd ../mercurial-evolve_1.0.0.orig && echo 'debian build directory ready at' `pwd`
    36 	@cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd`
    35 
    37 
    36 .PHONY: tests all-version-tests
    38 .PHONY: tests all-version-tests