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 (93 lines) | stat: -rwxr-xr-x 1,931 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/perl
#
# Copyright 2009-2012 SPARTA, Inc.  All rights reserved.  See the COPYING
# file distributed with this software for details
#


use ExtUtils::MakeMaker;

%opts = (
		'NAME'	=> 'DNSSEC-Tools'
	);

WriteMakefile(%opts);

#------------------------------------------------------------------------

use strict;

#------------------------------------------------------------------------
#
# The packer parts of the makefile are the next large block of text.
#
# The following targets are available for general use:
#
#	packed_dist		Gather the packed commands, building if needed.
#	packed_distclean	Clean the gathered packed commands.
#       packed_commands         Build the packed command files.
#       clean_packed            Clean the packed commands.
#

my $packedmakefilestr = "

##########################################################################
#
# The following Makefile sections are for creating packed commands.
#

RM	= /bin/rm
MKDIR	= /bin/mkdir
CP	= /bin/cp

PACKED_DIRS =	convertar	\\
		donuts		\\
		mapper		\\
		scripts

PACKDIR = packed-tools

packed_dist:	packed_commands
	\$(RM) -fr \$(PACKDIR)
	\$(MKDIR) \$(PACKDIR)
	\$(CP) `find . -name '*.Darwin' -print` \$(PACKDIR)

packed_distclean:
	\$(RM) -fr \$(PACKDIR)

packed_commands:
	\@for d in \$(PACKED_DIRS);				\\
	do							\\
		echo \"building packed commands in \$\$d\";	\\
		cd \$\$d;					\\
		make packed_commands;				\\
		echo \" \";					\\
		cd ..;						\\
	done

clean_packed:
	\@for d in \$(PACKED_DIRS);				\\
	do							\\
		echo \"cleaning packed commands in \$\$d\";	\\
		cd \$\$d;					\\
		make clean_packed;				\\
		echo \" \";					\\
		cd ..;						\\
	done


";

#
# This is the end of the packer text that is added to the makefile.
#
#------------------------------------------------------------------------


#
# Write the makefile lines to the makefile.
#
open(MK,">> Makefile");
print MK $packedmakefilestr;
close(MK);