Damn! You mean that ring I ate with my cornflakes was the answer all along?
Had I but known! Thanks much Randal, I'll give it a go this morning. NOTE--
rjray if you are reading this, it's stuff like this that need to go in the
next article! 'Course, same goes for you Randal, just think, more
complicated than regexes and with a smaller audience of readers<g>...

--hsm

-----Original Message-----
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:09 PM
To: [EMAIL PROTECTED]; Hugh S. Myers
Subject: Re: How to run a script as part of make


>>>>> "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.

warning - this is just from reading the docs.  I might have this all
wrong.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!

Reply via email to