Makefile
changeset 28 950f79385de7
parent 27 e7c278de2e20
child 29 503b0ef635cc
--- a/Makefile	Tue Dec 05 00:11:48 2017 +0100
+++ b/Makefile	Wed Dec 06 09:56:32 2017 +0100
@@ -27,8 +27,9 @@
 
 version = 1.2-rc1
 
+src := $(shell dirname $(lastword $(MAKEFILE_LIST)))
 HGREMOTE ?= https://hg.beremiz.org/
-HGROOT ?= $(abspath $(CURDIR)/..)
+HGROOT ?= $(abspath $(src)/..)
 GITROOT := $(HGROOT)
 DIST =
 CPUS = 8
@@ -45,7 +46,6 @@
 	cp $(CROSS_COMPILE_LIBS_DIR)/libstdc++-6.dll $(1)
 endef
 
-src := $(shell dirname $(lastword $(MAKEFILE_LIST)))
 distfiles = $(src)/distfiles
 sfmirror = downloads
 tmp := $(shell mktemp -d)