Don't output boolean macros in GNU makefiles unless they are really needed

This is a cosmetic change which omits the macro definitions if they are not
used in the rest of the makefile.