XMake macros can be used to create makefile rules with minimal knowledge of makefile syntax. We create a rule to test the generated file, 'build-versus-run-time.php', passing parameters. NOTE: '$' is escaped as '$$' in makefiles.
BUILD_EXAMPLE_LANGS:=en es pt fr jp
BUILD_EXAMPLE_OUTFILES:=$(patsubst \
%,$(CURDIR)/build-versus-run-time.body.%,$(BUILD_EXAMPLE_LANGS))
$(BUILD_EXAMPLE_OUTFILES): \
$(CURDIR)/build-versus-run-time.body.% \
:$(CURDIR)/build-versus-run-time.php
@$(call \
XM_php_outfileMacro,$(CURDIR)/build-versus-run-time.php,$@, \
$$user="greg"; $$lang="$*";)