Make crypto/buildinf.h depend on configdata.pm rather than Makefile
authorRichard Levitte <levitte@openssl.org>
Fri, 19 Feb 2016 23:21:04 +0000 (00:21 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 20 Feb 2016 15:50:20 +0000 (16:50 +0100)
Depending on Makefile meant that a new attempt to rebuild the Makefile
with "new" dependency data was done all the time, uncontrolled.  Better
to depend on configdata.pm, which truly only changes with reconfiguration.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Laurie <ben@openssl.org>
crypto/build.info

index b360ff876e7a43b96b3f0da0c3707489d1cf2cbc..a3ea7f0e0dd0b81943af0d133c89e383fd534a0d 100644 (file)
@@ -11,12 +11,12 @@ EXTRA=  ../ms/uplink-x86.pl ../ms/uplink.c ../ms/applink.c \
 DEPEND[cversion.o]=buildinf.h
 
 BEGINRAW[descrip.mms]
-[.crypto]buildinf.h : descrip.mms
+[.crypto]buildinf.h : configdata.pm
        $(PERL) {- catfile(catdir($sourcedir, "[-]"), "util", "mkbuildinf.pl") -} "$(CC) $(CFLAGS)" "$(PLATFORM)" > [.crypto]buildinf.h
 ENDRAW[descrip.mms]
 
 BEGINRAW[Makefile]
-crypto/buildinf.h : Makefile
+crypto/buildinf.h : configdata.pm
        $(PERL) $(SRCDIR)/util/mkbuildinf.pl "$(CC) $(CFLAGS_Q)" "$(PLATFORM)" > crypto/buildinf.h
 
 ##### APPLINK, UPLINK and CPUID assembler implementations