]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Fix version.o dependency upon git index
authorMichael Brown <mcb30@ipxe.org>
Mon, 12 May 2014 15:41:06 +0000 (16:41 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 12 May 2014 15:41:06 +0000 (16:41 +0100)
commitd42901c4ad11aa565ff793534f228f9577e0e956
tree58adf1395a5650ef70bee76da50b413d6ea8bad4
parentabf875a2e59c699b503c7272515dac3cdaffb7c1
[build] Fix version.o dependency upon git index

Commit 8540300 ("[build] Disable ccache for all relevant build
targets") attempted to generalise the rule for $(BIN)/version.o to
$(BIN)/version.% in order to apply the dependency to all relevant
build targets (debug objects, assembly listings, etc).

This generalisation appears to work for the ccache override
directives, but seems to cause make (at least, GNU make 4.0) to simply
ignore the dependency upon the git index.

Since version.c contains only some string constants, there is unlikely
to be a substantive need for its debug objects, assembly listings,
etc.  Restore the previous form of the dependency and accept that
hypothetical builds with e.g. DEBUG=version will not be handled
correctly.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping