Here's where I'm at now:
REFRESH+ldb+celltools+pub := dogs

all :
        @list=REFRESH+ldb+celltools+pub ;\
        echo "list = '$$list'" ;\
        echo "contents = '$($$list)'" ; \
        def=$(origin $$list); \
        echo "def = $$def" ; \
        if ! [ "$$def" = "undefined" ] ; then \
                echo "if defined"; \
        else \
                echo "else undefined" ; \
        fi



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of PATTON, BILLY (SBCSI)
> Sent: Monday, April 10, 2006 1:03 PM
> To: [email protected]
> Subject: Determine if variable exists on make side from sh side
> 
> 
> 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.
> 
> 
> 
> _______________________________________________
> Help-make mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-make
> 


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

Reply via email to