Fix version.h generation

Currently the build fails when parallelised with:

  make[1]: *** No rule to make target 'version.h', needed by 'util.o'.  Stop.

Fix the name of the Makefile dependency to fix the build error.

Fixes: https://github.com/linux-msm/qdl/issues/91
Closes: https://github.com/linux-msm/qdl/pull/92
Signed-off-by: Christopher Obbard <christopher.obbard@linaro.org>
This commit is contained in:
Christopher Obbard
2025-02-04 20:23:28 +00:00
committed by Bjorn Andersson
parent ad320a1a66
commit 2872a8ea62

View File

@@ -34,7 +34,7 @@ versionfile:
@echo "#define VERSION \"$(GITREF)\"" > .version.h
@cmp -s .version.h version.h || cp .version.h version.h
util.o: version.h
util.o: versionfile
clean:
rm -f $(QDL) $(QDL_OBJS)