[I'm not subscribed to module-build-general, please Cc: me on replies]
All-
I've searched and browsed the module-build-general archives and skimmed
the pod for Module::Build and Module::Build::Cookbook, and still don't see
how to do something that should be "simple".
How do I do the equivalent of (in Makefile-ese):
PERL=/path/to/perl
SOME_CMD=/path/to/some/command
...
subs : lib/My/Module.pm
$(PERL) -pi -e "s/@SOME_CMD@/$(SOME_CMD)/" $<
build: subs
...continue regular build rule here
In other words, I want a custom action that substitutes the path to some
command in place of @SOME_CMD@ in my module. I want the default build
(really the code) action to happen as normal, but it should depend on
my custom subs action happening first.
Without completely overriding the default code action, I don't see any
obvious way to do this. Is this the kind of thing normally handled by
a .PL file?