Greetings again, Ye Monks

While waiting for responses to Module::Build and Autoconf, I've made some headway and I have a new question. Responses to Module::Build and Autoconf are still greatly appreciated.

Is there a way to tell Module::Build arbitrary file dependencies for the build?

I want to generate an .xs file with potentially different #include lines. I've figured out that I can generate the .xs file by creating a new .xs.PL file that generates the .xs file. Module::Build handles that wonderfully. My problem is, my .xs.PL file references a template, and Module::Build doesn't know a thing about my template, so if I change my template, running ./Build doesn't know to rebuild my .xs file.

Does anyone know of a way to tell Module::Build that my .xs file depends on my template file?

Here's a simplified example to make this question clearer:

Foo.xs.PL reads Foo.xs.template and creates Foo.xs. If I touch Foo.xs.PL and run ./Build, it will rebuild Foo.xs. If I touch Foo.xs.template and run ./Build, nothing happens. I want to tell Module::Build that it should rebuild Foo.xs if I touch Foo.xs.template.

Thanks!
-Pileofrogs


In reply to Module::Build file dependencies by pileofrogs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.