[rtems commit] build: Fix the dependence for the generating the key file.
Sebastian Huber
sebh at rtems.org
Tue Nov 14 06:06:55 UTC 2017
Module: rtems
Branch: master
Commit: 631f711598ca63bfcdfe3bdfd4a57fdda5243c64
Changeset: http://git.rtems.org/rtems/commit/?id=631f711598ca63bfcdfe3bdfd4a57fdda5243c64
Author: Chris Johns <chrisj at rtems.org>
Date: Tue Nov 14 11:57:55 2017 +1100
build: Fix the dependence for the generating the key file.
Update #3217.
---
cpukit/sapi/Makefile.am | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/cpukit/sapi/Makefile.am b/cpukit/sapi/Makefile.am
index a38d863..85d89ef 100644
--- a/cpukit/sapi/Makefile.am
+++ b/cpukit/sapi/Makefile.am
@@ -57,11 +57,9 @@ libsapi_a_CPPFLAGS += -I.
BUILT_SOURCES = version-vc-key.h
-.PHONY: $(vc_key_stamp)
+.PHONY: generate-vc-key
-$(vc_key_stamp):
-
-version-vc-key.h: $(vc_key_stamp)
+generate-vc-key:
@+current_vc_key=""; \
if test -f $(vc_key_stamp); then \
current_vc_key=`cat $(vc_key_stamp)`; \
@@ -79,9 +77,11 @@ version-vc-key.h: $(vc_key_stamp)
echo "$$vc_key" > $(vc_key_stamp); \
fi
-version.$(OBJEXT):$ version-vc-key.h
+version-vc-key.h: generate-vc-key
+
+$(srcdir)/src/version.c: version-vc-key.h
-all-local: version-vc-key.h
+all-local: generate-vc-key
include $(srcdir)/preinstall.am
include $(top_srcdir)/automake/local.am
More information about the vc
mailing list