To answer the last, first, "make test" fails unless the script is run. What
I don't know is the "hook the execution of the script into" part, at least
not in terms of Makefile.PL. I'd really like to see a
<potential_book_alert>MakeMaker Cookbook</potential_book_alert> or the like,
to cover things like this. To me at this stage of things, there is a bit too
much theoretic/arcane and not enough practical/mundane! I suppose that what
I should do is go get my hands dirty some more-- the old try this and see
what happens approach...

--hsm

p.s. well maybe not a book, but at least a FAQ with numerous examples!

-----Original Message-----
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 5:42 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> I now have a README that in part says:
Hugh>   perl Makefile.PL
Hugh>   perl script/db.pl
Hugh>   make
Hugh>   make test
Hugh>   make install

Hugh> I'd just as soon that db.pl got run as part of the just 'make' part
rather
Hugh> than as a stand alone. This, of course, would get me back to a more
vanilla
Hugh> situation--devoutly to be desired!

As always, the trick in "make" is to figure out "what depends on your
script being run", and then hook the execution of the script into that
step.  Does it have to be done before a "make build"?  Does it have to
be done before a "make test"?  What step fails if I don't do it at
all?

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