Re: nearing the home stretch
[email protected] (James Muir)
| Newsgroups | perl.cpan.discuss |
|---|---|
| Message-ID | <[email protected]> |
Steffen Mueller wrote: > Hi James, > > James Muir wrote: > [...] > >> I've created my directories using 'module-starter' and it >> automatically created a nice set of templates which I have been >> revising. The Makefile.PL only shows my main module, >> Gtk2::Ex::MindMapView. I'm wondering if I need to include the names >> of the remaining modules under lib in the Makefile.PL? If so, where >> in the Makefile.PL do I place them? >> >> I did try make manifest as above and got: >> >> (/home/james/Gtk2-Ex-MindMapView)>make manifest >> make: *** No rule to make target `manifest'. Stop. >> >> which makes sense to me, since I haven't even created a make file yet. > > > Don't put all of your modules in Makefile.PL. Presumably, they are in > the lib/ subdirectory. Now, to build a distribution for uploading to > CPAN, do the following: > > perl Makefile.PL > make > make manifest > make test > make dist > > Then, it's best to test the resulting tar.gz file as if you just > downloaded it from CPAN. > > Move it to /tmp or so. Extract it with tar -xzvf Foo.tar.gz. > Confirm that all of your modules are in lib/ and all files you wanted > to ship with your module are in the tarball. > perl Makefile.PL && make && make test > If all tests pass, make install if you wish. If everything works, > upload it via pause.perl.org. > > Steffen > > Thanks Steffen. This looks like the kind of guidance I needed. -James