Last change
on this file since 48 was 30, checked in by bcornec, 19 years ago |
Id property added on files to allow for better conf. management
|
-
Property svn:keywords
set to
Id
|
File size:
935 bytes
|
Rev | Line | |
---|
[1] | 1 | use ExtUtils::MakeMaker;
|
---|
| 2 | # See lib/ExtUtils/MakeMaker.pm for details of how to influence
|
---|
| 3 | # the contents of the Makefile that is written.
|
---|
| 4 | WriteMakefile(
|
---|
| 5 | 'NAME' => 'Mindi::DiskSize',
|
---|
| 6 | 'VERSION_FROM' => 'DiskSize.pm', # finds $VERSION
|
---|
| 7 | 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
|
---|
| 8 | ($] >= 5.005 ? ## Add these new keywords supported since 5.005
|
---|
| 9 | (ABSTRACT_FROM => 'DiskSize.pm', # retrieve abstract from module
|
---|
| 10 | AUTHOR => 'A. U. Thor <a.u.thor@a.galaxy.far.far.away>') : ()),
|
---|
| 11 | 'LIBS' => [''], # e.g., '-lm'
|
---|
| 12 | 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
|
---|
| 13 | # Insert -I. if you add *.h files later:
|
---|
| 14 | 'INC' => '', # e.g., '-I/usr/include/other'
|
---|
| 15 | 'MYEXTLIB' => 'lib/libdisksize.a',
|
---|
| 16 | # Un-comment this if you add C files to link with later:
|
---|
| 17 | # 'OBJECT' => '$(O_FILES)', # link all the C files too
|
---|
| 18 | );
|
---|
| 19 |
|
---|
| 20 | sub MY::postamble {
|
---|
| 21 | '
|
---|
| 22 | $(MYEXTLIB): lib/Makefile
|
---|
| 23 | cd lib && $(MAKE) $(PASTHRU)
|
---|
| 24 | ';
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.