René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

gmake directives

Test if a variable's value is non empty

ifeq ($(strip $(VAR)),)
  foo
  bar
endif
Note: ifdef does not test if a variable's value is not empty, ifdef just tests if the variable was defined (possibly to the empty string).