if i want to do a simple check for a non-empty string, i know i can
use (as the simplest variation):

  ifneq "${VAR}" ""

but i have the following simplified makefile:

  SUBDIRS = d1 d2 d3
  .PHONY: ${SUBDIRS}

  ${SUBDIRS}:
        @echo "My target is [EMAIL PROTECTED]"
        @echo "My makefile variable contains [EMAIL PROTECTED]"
  ifneq "[EMAIL PROTECTED]" ""
        @echo "Yup, that variable is set."
  endif

i want to call this with something like:

  $ make d2_MAKEFILE=d2make d2

and be able to test whether the corresponding variable is set within
the rule.

  what i get is:

-------
$ make d2_MAKEFILE=d2make d2
My target is d2.
My makefile variable contains d2make
-------

  so the "ifneq" doesn't give me the result i expect, and i assume
it's because of how "ifneq" does variable evaluation.  what's the
proper syntax for that kind of check?  thanks.

rday




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to