mbr has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to change the path of MyModule.xs within the h2xs
directory sturcture? There is no problem with changing the path to MyModule.pm, but make will not compile MyModule.xs if it isn't located in the same directory as Makefile.PL. For example I want to be able to do this:
-create MyModule with 'h2xs -A -n Mymodule'.
-create the directory 'MyModule/lib'
-move MyModule.pm and MyModule.xs into MyModule/lib
-build normally with 'perl Makefile.PL && make' within the top-level MyModule directory.
I tried putting 'lib/MyModule.xs' in MANIFEST to no avail (this trick works with MyModule.pm).