-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathMakefile.PL
More file actions
59 lines (50 loc) · 1.71 KB
/
Makefile.PL
File metadata and controls
59 lines (50 loc) · 1.71 KB
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
use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
my $cilly = 'cilly';
my $Cilly = ucfirst($cilly);
WriteMakefile(
NAME => $cilly,
VERSION_FROM => 'App/'.$Cilly.'.pm',
PM => {
'App/'.$Cilly.'.pm' => '$(INST_LIBDIR)/App/'.$Cilly.'.pm',
'App/'.$Cilly.'/CilConfig.pm' => '$(INST_LIBDIR)/App/'.$Cilly.'/CilConfig.pm',
'App/'.$Cilly.'/CilCompiler.pm' => '$(INST_LIBDIR)/App/'.$Cilly.'/CilCompiler.pm',
'App/'.$Cilly.'/KeptFile.pm' => '$(INST_LIBDIR)/App/'.$Cilly.'/KeptFile.pm',
'App/'.$Cilly.'/OutputFile.pm' => '$(INST_LIBDIR)/App/'.$Cilly.'/OutputFile.pm',
'App/'.$Cilly.'/TempFile.pm' => '$(INST_LIBDIR)/App/'.$Cilly.'/TempFile.pm',
},
EXE_FILES => [ '../../bin/'.$cilly ],
PREREQ_PM => {
'Carp' => 0,
'Data::Dumper' => 0,
'File::Basename' => 0,
'File::Copy' => 0,
'File::Spec' => 0,
'File::Temp' => 0,
'FindBin' => 0,
'Getopt::Long' => 0,
'Text::ParseWords' => 0,
},
PL_FILES => {},
MAN3PODS => {}, # no need for man pages for any of the .pm files
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => '' },
);
package MY;
sub MY::postamble {
my $postamble = <<'MAKE_FRAG';
.PHONY: real-uninstall
force_uninstall:
ifeq ($(INSTALLDIRS), site)
$(RM_F) $(DESTINSTALLSITEBIN)/$(NAME)
cd $(DESTINSTALLSITELIB) && $(RM_F) $(TO_INST_PM)
$(RM_RF) $(DESTINSTALLSITEARCH)/auto/$(FULLEXT)
else
echo "force_uninstall works only if INSTALLDIRS=site"
endif
MAKE_FRAG
return $postamble;
}
1;