The manual's example of using $(findstring) to test MAKEFLAGS:

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

was broken by the addition of --no-print-directory to $(MAKEFLAGS). Here, "make --no-print-directory" will look as a false positive.

I suggest reverting this addition, or changing the text in the manual to

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

Thanks,

Paolo


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to