Mercurial > evolve
changeset 5386:77729ad7cb0c
makefile: make all non-file targets phony
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 07 Jul 2020 20:37:07 +0800 |
parents | 5be8fb87ef28 |
children | 6664e9f44bca |
files | Makefile docs/makefile |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Jul 07 20:10:00 2020 +0800 +++ b/Makefile Tue Jul 07 20:37:07 2020 +0800 @@ -3,14 +3,17 @@ TESTFLAGS ?= $(shell echo $$HGTESTFLAGS) HGTESTS = $(HGROOT)/tests +.PHONY: help help: @echo 'Commonly used make targets:' @echo ' deb-prepare - prepare the build of a debian package' @echo ' install-home - install with setup.py install --home=$$HOME ($(HOME))' @echo ' tests - run all tests in the automatic test suite' +.PHONY: all all: help +.PHONY: deb-prepare deb-prepare: python setup.py sdist --dist-dir .. mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz @@ -20,21 +23,23 @@ cp -r debian/ ../mercurial-evolve_$(VERSION).orig/ @cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd` +.PHONY: install-home install-home: $(PYTHON) setup.py install --home="$(HOME)" --prefix="" --force +.PHONY: doc doc: $(MAKE) -C docs +.PHONY: _check_hgroot _check_hgroot: ifeq ($(HGROOT),) $(error HGROOT is not set to the root of the hg source tree) endif +.PHONY: tests tests: _check_hgroot cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) test-%: _check_hgroot cd tests && $(PYTHON) $(HGTESTS)/run-tests.py $(TESTFLAGS) $@ - -.PHONY: tests all-version-tests