in reply to Re: Adding dependencies to the generated Makefile
in thread Adding dependencies to the generated Makefile
It says s.t. like:$ cat Makefile.PL use warnings; use strict; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Math::Calc', VERSION => '1.0', PREREQ_PM => {}, # e.g., Module::Name => 1.1 EXE_FILES => [ 'scripts/calc.pl' ], ABSTRACT_FROM => 'lib/Math/Calc.pod', # retrieve abstract from + pod AUTHOR => 'Procesadores de Lenguaje <casiano@ull.es>', depend => { 'test' => 'calc' }, ); sub MY::postamble { return <<'EOM'; calc: lib/Math/Calc.pm lib/Math/Calc.pm: lib/Math/Calc.eyp eyapp -s -m Math::Calc -o lib/Math/Calc.pm lib/Math/Calc.eyp myclean: veryclean rm -f Math-Calc-*.tar.gz cover -delete rmcalc: rm -f lib/Math/Calc.pm mytest: calc test remotetest: calc dist remotetest.pl ${DISTVNAME}.tar.gz orion beowulf coverage: calc cover -delete make HARNESS_PERL_SWITCHES=-MDevel::Cover test cover EOM }
Waht I am doing wrong?$ perl Makefile.PL Writing Makefile for Math::Calc $ make test Makefile:779: *** el archivo de objetivos `test' tiene líneas con : y +::. Alto.
depend => { 'test:' => 'calc' },
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Adding dependencies to the generated Makefile
by Anonymous Monk on Oct 29, 2008 at 17:04 UTC |