From: Simon Kuenzer Date: Thu, 19 Oct 2023 15:17:54 +0000 (+0200) Subject: build: Forcefully re-create link to main Makefile X-Git-Tag: RELEASE-0.15.0~11 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9c6253499f095dc37fba0763a8a6007868fa59fc;p=unikraft%2Funikraft.git build: Forcefully re-create link to main Makefile This commit makes sure that the symbolic link within the build directory always points to the unikraft Makefile version that is used for a build. This avoids issues when a project is build with multiple Unikraft versions but using the same build path. The reason is that the build system is invoking a sub-make call within the build directory using this symbolic link. Signed-off-by: Simon Kuenzer Reviewed-by: Cezar Craciunoiu Reviewed-by: Michalis Pappas Reviewed-by: Maria Sfiraiala Approved-by: Razvan Deaconescu GitHub-Closes: #1104 --- diff --git a/Makefile b/Makefile index 44fa810ad..ffad2708b 100644 --- a/Makefile +++ b/Makefile @@ -1141,6 +1141,8 @@ export sub_make_exec:=1 $(BUILD_DIR)/Makefile: $(call verbose_cmd,LN,$(notdir $@),$(HOSTLN) -sf $(CONFIG_UK_BASE)/Makefile $@) +.PHONY: $(BUILD_DIR)/Makefile + $(filter-out _all $(BUILD_DIR)/Makefile sub-make distclean properclean help $(lastword $(MAKEFILE_LIST)), \ $(MAKECMDGOALS)) all: sub-make @: