[lib/version] add a level of .phony indirection (#171)
Without this, the rule that depends on the generated file gets rebuilt every time.
This commit is contained in:
committed by
Travis Geiselbrecht
parent
3972b18697
commit
5b0f4d262b
@@ -21,9 +21,13 @@ endif
|
||||
# included yet set BUILDID.
|
||||
BUILDID_DEFINE="BUILDID=\"$(BUILDID)\""
|
||||
BUILDID_H := $(BUILDDIR)/buildid.h
|
||||
$(BUILDID_H):
|
||||
$(BUILDID_H): buildid_h.phony
|
||||
@$(call MAKECONFIGHEADER,$@,BUILDID_DEFINE)
|
||||
.PHONY: $(BUILDID_H)
|
||||
|
||||
# Moving the phony to an extra dependency allows version.o not to be
|
||||
# rebuilt if buildid.h doesn't change.
|
||||
buildid_h.phony:
|
||||
.PHONY: buildid_h.phony
|
||||
|
||||
GENERATED += $(BUILDID_H)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user