Is there a way to have a custom Makefile target to be generated by ExtUtils::MakeMaker? Say, I'd like to do some specific things that only a developer is interested in, like running pod and regression tests; I can use env variables for that but that's a bit unwieldy to remember things like that. Being able to run something like make devtest instead would be mighty handy.
ExtUtils::MakeMaker custom target
473 Views Asked by Alex Tokarev At
1
Regression Testing with ExtUtils::MakeMaker
By default, MakeMaker makefiles come with a
testtarget which runs all of the regression tests intest.plin the current directory as well as all files matchingglob("t/*.t")when you runmake test. Your typical usage should be:You can define your own
maketargets, there's some information about the variables you can set in the CPAN documentation for the module as well as the manpage.This is the example from the CPAN article: