in reply to cpan module with binary data: when to build?
You are running the example db copy operation in the perl Makefile.PL stage of building, which is too soon. The solution is to make the copy a target in the make stage. PREREQ having hauled in DBD::SQLite, the copy should work then.
According to the ExtUtils::MakeMaker pod, you can add a target to the default build target with the lowercase parameter,
and define the target with a &MY::postamble, which I think should look something like this,depend { all => 'example_data' }
That's untested, but something like it should work.sub MY::postamble { return << "DODB"; example_data \tperl -e'\\ \t your;\\ \t code;\\ \t here;' DODB }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cpan module with binary data: when to build? (working)
by thpfft (Chaplain) on Sep 02, 2004 at 20:45 UTC |