hi, I'm new here (dependencies)

[email protected] ("Paul Miller")
Newsgroups perl.module.build
Message-ID <[email protected]>
Hi, I'm new here.  I'm just getting acclimated to M::B, having used
EU::MM for many years.

I ran into a chicken-and-egg problem with version.pm and EU::MM, that
is, EU::MM allows you to require version.pm, but writes undef for the
version number in the Makefile, making XS builds fail for machines
that didn't previously have version.pm installed.  E::B solves this by
(as I understand it), including the infamous ::vpp...

Anywho, I feel like I have two left feet with E::B so far.  One thing
that irks me is that top-level .xs files are moved into the lib/
hierarchy before being built.  This frustrates my include process, but
I've gotten around it by modifying my .xs to have a smattering of
../../ in them.

But that leads me to my actual question, sorry it took so long to get
there:   How do you add dependencies?

My Blarg.xs file depends on include1.xs, include2.xs and include3.xs.
If I edit include1.xs an ./Build the Build script fails to notice that
Blarg.so is not  up to date.  In EU::MM it's a simple depends => {
Blarg.xs => " include1.xs include2.xs include3.xs " }, but I'm having
no luck finding it in E::B so far.  I did a little source diving, but
E::B is still esoteric to me (for now).

-Paul

-- 
If riding in an airplane is flying, then riding in a boat is swimming.
93 jumps, 38.4 minutes of freefall, 75.1 freefall miles.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.