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
$(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) $@)