File: Makefile.PL

package info (click to toggle)
liblockdev 0.9a
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 128 kB
  • ctags: 58
  • sloc: ansic: 489; makefile: 166; perl: 44; sh: 29
file content (21 lines) | stat: -rw-r--r-- 542 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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
         'NAME'	=> 'LockDev',
 'VERSION_FROM'	=> 'LockDev.pm', # finds $VERSION
         'LIBS'	=> [''],
       'DEFINE'	=> '',
          'INC'	=> '-I../src',
     'MYEXTLIB'	=> '../liblockdev.a',
       'PREFIX'	=> '../debian/tmp/usr',
 'INST_MAN3DIR'	=> '../debian/tmp/usr/man/man3',
);

sub MY::postamble {
'
$(MYEXTLIB): ../src/lockdev.c ../src/lockdev.h
	cd .. && $(MAKE) static
';
}