bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

findstring/MAKEFLAGS example is not robust


From: Peter Eisentraut
Subject: findstring/MAKEFLAGS example is not robust
Date: Wed, 24 Apr 2013 21:47:51 -0400

The manual contains this example:

     archive.a: ...
     ifneq (,$(findstring t,$(MAKEFLAGS)))
             +touch archive.a
             +ranlib -t archive.a
     else
             ranlib archive.a
     endif

But this would also trigger if you ran make with any other option that
contains a "t", for example --no-print-directory.

Is there a better way to write this?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]