Ticket #3217: 0001-build-Fix-the-dependence-for-the-generating-the-key-.patch

File 0001-build-Fix-the-dependence-for-the-generating-the-key-.patch, 1.1 KB (added by Chris Johns, on Nov 14, 2017 at 1:00:54 AM)

Please test and report if this works. Thanks

  • cpukit/sapi/Makefile.am

    From 9017097280b6c1916cdf0e892107a2423c5f0cc7 Mon Sep 17 00:00:00 2001
    From: Chris Johns <chrisj@rtems.org>
    Date: Tue, 14 Nov 2017 11:57:55 +1100
    Subject: [PATCH] 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 a38d86374e..85d89ef494 100644
    a b libsapi_a_CPPFLAGS += -I. 
    5757
    5858BUILT_SOURCES = version-vc-key.h
    5959
    60 .PHONY: $(vc_key_stamp)
     60.PHONY: generate-vc-key
    6161
    62 $(vc_key_stamp):
    63 
    64 version-vc-key.h: $(vc_key_stamp)
     62generate-vc-key:
    6563        @+current_vc_key=""; \
    6664        if test -f $(vc_key_stamp); then \
    6765         current_vc_key=`cat $(vc_key_stamp)`; \
    version-vc-key.h: $(vc_key_stamp) 
    7977         echo "$$vc_key" > $(vc_key_stamp); \
    8078        fi
    8179
    82 version.$(OBJEXT):$ version-vc-key.h
     80version-vc-key.h: generate-vc-key
     81
     82$(srcdir)/src/version.c: version-vc-key.h
    8383
    84 all-local: version-vc-key.h
     84all-local: generate-vc-key
    8585
    8686include $(srcdir)/preinstall.am
    8787include $(top_srcdir)/automake/local.am