* Randal L. Schwartz <[EMAIL PROTECTED]> [2002-04-03 01:08]: > >>>>> "Hugh" == Hugh S Myers <[EMAIL PROTECTED]> writes: > > Hugh> To answer the last, first, "make test" fails unless the script > Hugh> is run. What I don't know is the "hook the execution of the > Hugh> script into" part, at least not in terms of Makefile.PL. > > So, it needs to be an additional "make all" part, which precedes a > "make test". According to ExtUtils::MakeMaker, after applying my secret > Ilya/Andy/Andreas/Tim decoder ring: > > sub MY::postamble { <<'EXTRA'; > all: running-my-perl-thing > running-my-perl-thing: FORCE > $(PERL) my/script.pl > FORCE: > EXTRA > } > > That'll get added to the Makefile, and then a "make all" will ensure > that your Perl thing gets run.
This didn't work for me (perl 5.6.1); I get this error: Makefile:652: *** target file `all' has both : and :: entries. Stop. This worked: sub MY::postamble { <<'EXTRA' all :: FORCE @$(PERL) -le 'print "doing custom stuff" FORCE: EXTRA } (darren) -- Sigmund Freud is alleged to have said that in the last analysis the entire field of psychology may reduce to biological electrochemistry.