source: Makefile.PL @ c93eb8

Revision c93eb8, 728 bytes checked in by Tomash Brechko <tomash.brechko@…>, 3 years ago (diff)

Fix 'make bench' target.

  • Property mode set to 100644
Line 
1use 5.006;
2use strict;
3use warnings;
4use ExtUtils::MakeMaker;
5
6# See lib/ExtUtils/MakeMaker.pm for details of how to influence
7# the contents of the Makefile that is written.
8WriteMakefile(
9    NAME              => 'Cache::Memcached::Fast',
10    VERSION_FROM      => 'lib/Cache/Memcached/Fast.pm',
11    PREREQ_PM         => {
12        'Test::More'  =>  0
13    },
14    ABSTRACT_FROM     => 'lib/Cache/Memcached/Fast.pm',
15    AUTHOR            => 'Tomash Brechko <tomash.brechko@gmail.com>',
16    MYEXTLIB          => 'src/libclient$(LIB_EXT)',
17);
18
19sub MY::postamble {
20'
21$(MYEXTLIB): src/Makefile
22    cd src && $(MAKE) $(PASTHRU)
23
24bench: all
25    $(PERL) -I./blib/lib -I./blib/arch script/benchmark.pl \
26      localhost:11211 127.0.0.1:11211
27'
28}
Note: See TracBrowser for help on using the repository browser.