equal
deleted
inserted
replaced
40 export DOWNLOAD_SEARCH_PATH += $(INTERNAL_ARCHIVE_MIRROR) |
40 export DOWNLOAD_SEARCH_PATH += $(INTERNAL_ARCHIVE_MIRROR) |
41 ifneq ($(strip $(EXTERNAL_ARCHIVE_MIRROR)),) |
41 ifneq ($(strip $(EXTERNAL_ARCHIVE_MIRROR)),) |
42 export DOWNLOAD_SEARCH_PATH += $(EXTERNAL_ARCHIVE_MIRROR) |
42 export DOWNLOAD_SEARCH_PATH += $(EXTERNAL_ARCHIVE_MIRROR) |
43 endif |
43 endif |
44 |
44 |
45 # The workspace starts at the mercurial root |
45 # The workspace starts at the parent of the make-rules directory, |
|
46 # unless someone already supplied the top. |
46 ifeq ($(origin WS_TOP), undefined) |
47 ifeq ($(origin WS_TOP), undefined) |
47 export WS_TOP := $(shell hg root) |
48 export WS_TOP := $(realpath $(dir $(realpath $(dir $(filter \ |
|
49 %/make-rules/shared-macros.mk,$(MAKEFILE_LIST)))))) |
48 endif |
50 endif |
49 |
51 |
50 WS_MACH = $(WS_TOP)/$(MACH) |
52 WS_MACH = $(WS_TOP)/$(MACH) |
51 WS_LOGS = $(WS_MACH)/logs |
53 WS_LOGS = $(WS_MACH)/logs |
52 WS_REPO = $(WS_MACH)/repo |
54 WS_REPO = $(WS_MACH)/repo |