File: Makefile.PL

package info (click to toggle)
dnssec-tools 1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 16,064 kB
  • sloc: perl: 44,399; ansic: 31,547; cpp: 21,306; sh: 15,813; xml: 2,113; makefile: 1,390; pascal: 836; python: 290; csh: 11
file content (38 lines) | stat: -rwxr-xr-x 716 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
#!/usr/bin/perl
# Copyright 2004-2012 SPARTA, Inc.  All rights reserved.  See the COPYING
# file distributed with this software for details

use ExtUtils::MakeMaker;

%opts = InitMakeParams();

WriteMakefile(%opts);

appendstuff();

sub InitMakeParams {
    $DIRS = ['ZoneFile-Fast'];
    if ($ARGV[0] ne 'NOVALIDATOR') {
	unshift @$DIRS, 'Net-DNS-SEC-Validator', 'Net-addrinfo';
    }

    %opts = (
	     'NAME'		=> 'Net::DNS::SEC::Tools::conf',
	     'VERSION_FROM'	=> 'conf.pm', # finds $VERSION
	     'DIR'          => $DIRS, # avoids the testing dir
	    );
    return %opts;
}

sub appendstuff {
	open(MK,">> Makefile");

	print MK '

%.pm:   %.pm.in
	cd $(CURDIR)/../.. && ./config.status

';

	close(MK);
}