Makefile: Don't run genbuild_h if not doing a build
commit6318f1f500b69bbba156ec78598406cf30fd5e02
authorMartin Roth <martin@coreboot.org>
Sun, 9 May 2021 16:26:10 +0000 (9 10:26 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 12 May 2021 15:13:39 +0000 (12 15:13 +0000)
tree4c6ead2b3d27bafea70717f66ce6563937220f6a
parentb403da65cddff557da67cabd1a66e1053b8967c7
Makefile: Don't run genbuild_h if not doing a build

genbuild_h was being run on every make invocation - clean, distclean,
etc. to get the source date epoch value.  This value isn't used unless
a build is being done, so don't run it on non-compile make invocations.

Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: I2afc0affc17116e0db849ea968474bc19dbb0ae1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/53997
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Makefile