[openssl-dev] make depend issue: if [ Makefile -nt Makefile ]

Short, Todd tshort at akamai.com
Tue Mar 8 21:13:17 UTC 2016


Never mind then! :)
--
-Todd Short
// tshort at akamai.com<mailto:tshort at akamai.com>
// "One if by land, two if by sea, three if by the Internet."

On Mar 8, 2016, at 4:01 PM, Richard Levitte <levitte at openssl.org<mailto:levitte at openssl.org>> wrote:

I suggest reading the comment just above depend:, especially this:

   # To check if test has the file age comparison operator, we
   # simply try, and rely test to exit with 0 if the comparison
   # was true, 1 if false, and most importantly, 2 if it doesn't
   # recognise the operator.

Comparing Makefile with Makefile is because...  well, it's as good a
file as any, and since the result from the operation itself isn't the
important part on that line, a bit of Makefile narcissism can't hurt
;-)

Cheers,
Richard

In message <1B05C047-CB6D-4082-8C8F-B5820D22AC46 at akamai.com<mailto:1B05C047-CB6D-4082-8C8F-B5820D22AC46 at akamai.com>> on Tue, 8 Mar 2016 20:57:07 +0000, "Short, Todd" <tshort at akamai.com<mailto:tshort at akamai.com>> said:

tshort> Hi,
tshort>
tshort> I noticed the following oddity in commit f8d9d6e:
tshort>
tshort> depend:
tshort> @catdepends=false; \
tshort> if [ Makefile -nt Makefile ] 2>/dev/null || [ $$? = 1 ]; then \
tshort>
tshort> I’m not sure of the intent or the fix, but it doesn’t seem right to
tshort> compare the timestamp of a file to itself.
tshort>
tshort> --
tshort> -Todd Short
tshort> // tshort at akamai.com<mailto:tshort at akamai.com>
tshort> // "One if by land, two if by sea, three if by the Internet."
tshort>
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160308/97110bfa/attachment-0001.html>


More information about the openssl-dev mailing list