changeset 5381:7cdbe18838bc

makefile: move all definitions to the top
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 07 Jul 2020 19:11:53 +0800
parents 60317988f5ae
children 2e90cd9feec8
files Makefile
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Jun 12 15:42:43 2020 +0800
+++ b/Makefile	Tue Jul 07 19:11:53 2020 +0800
@@ -1,6 +1,8 @@
-VERSION=$(shell python setup.py --version)
+PYTHON ?= python
+VERSION = $(shell python setup.py --version)
+TESTFLAGS ?= $(shell echo $$HGTESTFLAGS)
+HGTESTS = $(HGROOT)/tests
 
-PYTHON=python
 
 all: help
 
@@ -16,11 +18,6 @@
 install-home:
 	$(PYTHON) setup.py install --home="$(HOME)" --prefix="" --force
 
-# test targets
-TESTFLAGS ?= $(shell echo $$HGTESTFLAGS)
-
-HGTESTS=$(HGROOT)/tests
-
 help:
 	@echo 'Commonly used make targets:'
 	@echo '  deb-prepare        - prepare the build of a debian package'