From: Marco Schlumpp Date: Tue, 18 Apr 2023 12:53:56 +0000 (+0200) Subject: Fix dependency on fetch step X-Git-Tag: RELEASE-0.13.0~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4da593286fcaedb92bb9c7ad1b3b9e56f21ba511;p=unikraft%2Flibs%2Fmusl.git Fix dependency on fetch step Because `fetch` was not really a file, make always tried to remake the version file. Therefore, it also needed to recompile the file as the mtime of the version file was updated. Signed-off-by: Marco Schlumpp Reviewed-by: Eduard Vintilă Reviewed-by: Sergiu Moga Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #41 --- diff --git a/Makefile.uk b/Makefile.uk index 3796ac8..e419fea 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -109,7 +109,7 @@ $(LIBMUSL)/arch/$(MUSL_ARCH)/bits/alltypes.h: $(LIBMUSL_BUILD)/.patched $(TOUCH) $@) # generate version.h -$(LIBMUSL)/src/internal/version.h: fetch +$(LIBMUSL)/src/internal/version.h: $(LIBMUSL_BUILD)/.origin $(call verbose_cmd,CONFIGURE,libmusl: $(notdir $@),\ printf '#define VERSION "%s"\n' "$$(cd $(LIBMUSL); sh tools/version.sh)" > $@ && \ $(TOUCH) $@)