equal
deleted
inserted
replaced
|
1 VERSION=$(shell python setup.py --version) |
|
2 |
|
3 |
|
4 help: |
|
5 @echo 'Commonly used make targets:' |
|
6 @echo ' deb-prepare - prepare the build of a debian package' |
|
7 |
|
8 all: help |
|
9 |
|
10 deb-prepare: |
|
11 python setup.py sdist --dist-dir .. |
|
12 mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz |
|
13 tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz |
|
14 rm -rf ../mercurial-evolve_$(VERSION).orig |
|
15 mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig |
|
16 cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ |
|
17 @cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd` |
|
18 |
|
19 # test targets |
|
20 |
1 PYTHON=python |
21 PYTHON=python |
2 ifeq ($(HGROOT),) |
22 ifeq ($(HGROOT),) |
3 $(error HGROOT is not set to the root of the hg source tree) |
23 $(error HGROOT is not set to the root of the hg source tree) |
4 endif |
24 endif |
5 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
25 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) |
15 all: help |
35 all: help |
16 |
36 |
17 tests: |
37 tests: |
18 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
38 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
19 |
39 |
|
40 # /!\ run outside of the compatibility branch output test will likely fails |
|
41 |
20 test-%: |
42 test-%: |
21 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ |
43 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ |
22 |
44 |
23 tests-%: |
45 tests-%: |
24 hg -R $(HGROOT) checkout $$(echo $@ | sed s/tests-//) && \ |
46 hg -R $(HGROOT) checkout $$(echo $@ | sed s/tests-//) && \ |
25 (cd $(HGROOT) ; $(MAKE) clean ) && \ |
47 (cd $(HGROOT) ; $(MAKE) clean ) && \ |
26 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
48 cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) |
27 |
49 |
28 all-version-tests: tests-3.7 tests-@ |
50 # build a script to extract declared version |
|
51 all-version-tests: tests-@ |
29 |
52 |
30 .PHONY: tests all-version-tests |
53 .PHONY: tests all-version-tests |