For example: .if empty (CFLAGS) CFLAGS = -Wall -g.endif The following example will take a variable for its argument.
Here's an example: .if $(DEBUG) == 1 $(CFLAGS) = -g. ifndef $(DEBUG_FLAGS) $(FLAGS) = $(DEBUG_FLAGS).