develooper Front page | perl.perl5.porters | Postings from February 2003

ext/... makefile dependencies

Thread Next
February 25, 2003 05:17
ext/... makefile dependencies
Message ID:
When integrating new modules into the core, if they involve XS I always
have problems rebuilding.

In an ideal world given a fully built perl, dumping a new version of a
module into the source tree and 'make all test' would rebuild everything
appropriately, but this doesn't seem to happen.

To take Encode as an example, I can make some progress by first doing a:
  rm -rf lib/Encode* lib/auto/Encode
and to allow for the unexpressed VERSION_FROM dependency:
  rm ext/Encode/Makefile
.. but then a 'make all' still fails to install certain files to the lib
directory such as itself.

As far as I can see, the missing files are those declared as TO_INST_PM
in the Makefile, and I think they are installed by the 'pm_to_blib'
target. But I can't see where the dependencies are that ensure this
target is ever built. I would have thought that somewhere should be
declared that ${INST_LIB}/ is dependent on, but
nothing like that seems to exist.

So I have two questions:
- with the current code, how do I force a proper rebuild and install to
  lib of a core module in ext?
- can we fix the generated Makefiles to have the proper dependencies to
  allow a 'make all' to do the right thing?

At the moment, my only known recourse is to do a full 'make distclean'
and then reconfigure and build, which seems like an awful waste of time.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About