help-make
[Top][All Lists]
Advanced

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

Determine if variable exists on make side from sh side


From: PATTON, BILLY \(SBCSI\)
Subject: Determine if variable exists on make side from sh side
Date: Mon, 10 Apr 2006 13:03:24 -0500

Here is what I have:

all :
        @list=REFRESH+ldb+celltools+pub ;\
        if ! [ -z "$($list)" ] ; then \
                echo "list = '$$list'"; \
        fi


I need to determine if the variable REFRESH+ldb+celltools+pub exists
in the make world.  This name is normally  generated for values passed
in to a define.
I believe that the -z will tell if a sh variable has no value, but that
refers to a sh variable.
I need for sh functions to determine if a make variable exists.





reply via email to

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