Dill, John wrote:

%% "Dill, John" <[EMAIL PROTECTED]> writes:

include_guard = $(if $(filter $1,$(.VARIABLES)),,$1)

Unfortunately there's a problem here: I think plain "include" with no
file after it might be considered an error.

Yep, that's true. The other option is to include an empty dummy file. That could be incorporated into the include_guard. I don't think '-' is the correct route since I want to still have errors on bad include filenames.

If you're creating a function that'll do the include, you can use $(foreach).

Noel


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

Reply via email to