File: Makefile.PL

package info (click to toggle)
libtm-perl 1.20-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 672 kB
  • ctags: 139
  • sloc: perl: 3,707; makefile: 45
file content (72 lines) | stat: -rw-r--r-- 2,812 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
use 5.008003;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
	      NAME              => 'TM',
	      VERSION_FROM      => 'lib/TM.pm', # finds $VERSION
	      PREREQ_PM         => {}, # e.g., Module::Name => 1.1
	      ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
	       (ABSTRACT_FROM  => 'lib/TM.pm',
		AUTHOR         => 'Robert Barta <drrho@cpan.org>') : ()),
#	      'EXE_FILES'     => [ 'bin/tm' ],

              'NOECHO'        => '@',
              'PREREQ_PM'     => {
# do a 'make dependencies' to get an update
'BerkeleyDB'                => '0.29',
"Config::General"    => 2.26,
"Log::Log4perl"    => 0.50,
"Log::Log4perl::Appender::File"    => undef,
'LWP::Simple'               => '1.41',
"MLDBM"    => 2.01,
"MLDBM::Sync"    => 0.30,
"Parse::RecDescent"    => 1.94,
"Parse::Yapp::Driver"    => 1.05,
"Pod::Usage"    => 1.16,
#"Proc::Daemon"    => 0.03,
#"Proc::PID::File"    => 1.24,
#"SOAP::Transport::HTTP"    => 0.55,
#"Term::ReadLine"    => 1.01,
"Test::More"    => 0.47,
"Test::Pod"    =>  1.00,
"URI::Escape"    => 3.22,
"URI::file"    => 4.14,
"XML::LibXML"    => 1.58,
#"XML::Simple"    => 2.13,
	      },
              'NORECURS'       => 1,

);

package MY;

sub depend {
    return <<MAKE

cparser: lib/TM/AsTMa/Fact2.pm lib/TM/AsTMa/Fact.pm lib/TM/LTM/CParser.pm

lib/TM/AsTMa/Fact.pm: yapp/astma-fact.yp yapp/YappTemplate.pm
	yapp -m TM::AsTMa::Fact -t yapp/YappTemplate.pm -o lib/TM/AsTMa/Fact.pm yapp/astma-fact.yp

lib/TM/AsTMa/Fact2.pm: yapp/astma2-fact.yp yapp/YappTemplate.pm
	yapp -m TM::AsTMa::Fact2 -t yapp/YappTemplate.pm -o lib/TM/AsTMa/Fact2.pm yapp/astma2-fact.yp

lib/TM/AsTMa/PathCParser.pm: lib/TM/AsTMa/Path.pm
	perl -Ilib -MTM::AsTMa::Path -e 'print \$\$TM::AsTMa::Path::ap_grammar' > /tmp/grammar
	perl -MParse::RecDescent - /tmp/grammar TM::AsTMa::PathCParser
	mv PathCParser.pm lib/TM/AsTMa/

lib/TM/LTM/CParser.pm: lib/TM/LTM/Parser.pm
	perl -Ilib -MTM::LTM::Parser -e 'print \$\$TM::LTM::Parser::ltm_grammar' > /tmp/grammar
	perl -MParse::RecDescent - /tmp/grammar TM::LTM::CParser
	mv CParser.pm lib/TM/LTM/

dependencies:
	scandeps.pl `grep .pm MANIFEST` `grep bin/ MANIFEST`| grep -v undef
# 	egrep -e '(^use | use ).*;' `find t -iname '*.t'; find lib -iname '*.pm'; find bin -iname '*'` | perl -ne '/^.+?:\\s*use ([A-Za-z0-9:]+)/; print "\$\$1\\n"' | egrep -v '(base|Carp|POSIX|vars|strict|constant|warnings|Class::Struct|Fcntl|Data::Dumper|Storable|lib|UNIVERSAL|Digest::MD5|IO::File|File::Temp|File::stat|Getopt::Long)' | egrep -v '^TM' | grep -v '^XTM' | sort -u | perl -ne 's/;//; chomp; next unless \$\$_; print "\\"\$\$_\\"    => "; eval "use \$\$_; print (\\\$\$\$\${_}::VERSION || \\"undef\\")"; print ",\\n"'



MAKE
}