I'm building a command line "to-do" CPAN module. The module will have
some scripts that need to be installed in /usr/local/bin, for example.
These scripts need to manipulate data files in /usr/local/etc and
/usr/local/var, for example, which contain the application
configuration and database of actual to-dos. I want the
"/usr/local/etc" and "/usr/local/var" directories to be configurable
during the "perl Makefile.pl; make" stage of installing the CPAN
I think that "/usr/local/etc" and "/usr/local/var" strings need to be
hard coded into my scripts somehow. Right now I'm using the GNU
./configure; make; make install system and am using m4 macros
, @[email protected]
to modify the scripts (i.e. hard code
the string) before they are installed. I'd like to use the Perl system
(not the GNU system) for building so that my module can be used on all
systems with Perl.
Is what I want to do possible with MakeMaker?