# HG changeset patch # User Anton Shestakov # Date 1594125427 -28800 # Node ID 77729ad7cb0c5f3b8cb19600a111eb184a911638 # Parent 5be8fb87ef28c75af2f444c6fae9403ea15dcdb4 makefile: make all non-file targets phony diff -r 5be8fb87ef28 -r 77729ad7cb0c Makefile --- 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 diff -r 5be8fb87ef28 -r 77729ad7cb0c docs/makefile --- a/docs/makefile Tue Jul 07 20:10:00 2020 +0800 +++ b/docs/makefile Tue Jul 07 20:37:07 2020 +0800 @@ -1,5 +1,6 @@ SPHINXBUILD ?= sphinx-build +.PHONY: all all: tutorials/tutorial.rst tutorials/topic-tutorial.rst static/logo-evolve.ico $(SPHINXBUILD) . ../html/