]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Fix dependency on fetch step
authorMarco Schlumpp <marco@unikraft.io>
Tue, 18 Apr 2023 12:53:56 +0000 (14:53 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 4 May 2023 14:30:06 +0000 (14:30 +0000)
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 <marco@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #41

Makefile.uk

index 3796ac82f7969cfd571bbf0917e00627abe5b95f..e419fead867c4b4ab9b23834566da47d395e1e4c 100644 (file)
@@ -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) $@)