Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.01
Fetching contributors…

Cannot retrieve contributors at this time

file 110 lines (89 sloc) 2.913 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 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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
use 5.10.0;
use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
    NAME => 'podium',
    ABSTRACT => 'POD-based presentation and website builder',
    AUTHOR => 'Andy Lester <andy@petdance.com>',
    VERSION_FROM => 'Podium.pm',
    LICENSE => 'artistic2',
    PL_FILES => {},
    PM => {
        'Podium.pm' => '$(INST_LIBDIR)/Podium.pm',
        'PSH.pm' => '$(INST_LIBDIR)/Podium/PSH.pm',
    },
    EXE_FILES => [ 'podium' ],
    PREREQ_PM => {
        'Carp::Always' => 0,
        'File::Slurp' => 0,
        'Getopt::Long' => 0,
        'Pod::Simple' => 3.13,
        'Pod::Simple::HTML' => 0,
        'Template' => 0,
        'Test::More' => 0,
        'YAML' => 0,
    },
    META_MERGE => {
        resources => {
            homepage => 'http://betterthangrep.com/',
            bugtracker => 'http://github.com/petdance/ack',
            license => 'http://dev.perl.org/licenses/',
            repository => 'git://github.com/petdance/ack.git',
            MailingList => 'http://groups.google.com/group/ack-users',
        },
    },
    MAN3PODS => {}, # no need for man pages for any of the .pm files
    dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean => { FILES => 'podium-1* nytprof*' },

);


sub MY::postamble {
    my $file_next_filename = qx(perldoc -l File::Next);
    my $postamble = <<'MAKE_FRAG';
.PHONY: tags critic

tags:
ctags -f tags --recurse --totals \
--exclude=blib \
--exclude=.git \
--exclude='*~' \
--exclude=podium \
--languages=Perl --langmap=Perl:+.t \

critic:
perlcritic -1 -q -profile perlcriticrc $(BASE) $(ALL_PM) t/*.t

tidy:
perltidy -b -pro=perltidyrc $(BASE) $(ALL_PM)

PROF_ARGS = -Mblib ./$(ACK) --noenv --color --group -w foo ~/parrot

timed: all
$(PERL) $(PROF_ARGS) >> /dev/null 2>&1

dprof: all
$(PERL) -d:DProf $(PROF_ARGS) >> /dev/null 2>&1
dprofpp -R

dproflb: all
$(PERL) -d:DProfLB $(PROF_ARGS) >> /dev/null 2>&1
dprofpp -R

fastprof: all
$(PERL) -d:FastProf $(PROF_ARGS) >> /dev/null 2>&1
fprofpp

profile: all
$(PERL) -d:Profile $(PROF_ARGS) >> /dev/null 2>&1
less prof.out

profiler: all
$(PERL) -MDevel::Profiler $(PROF_ARGS) >> /dev/null 2>&1
dprofpp -R

smallprof: all
$(PERL) -d:SmallProf $(PROF_ARGS) >> /dev/null 2>&1
sort -k 2nr,2 smallprof.out | less

nytprof: all
$(PERL) -d:NYTProf $(PROF_ARGS) >> /dev/null 2>&1
nytprofhtml

$(ACK) : $(BASE) $(ALL_PM) squash Makefile
$(PERL) squash ack-base File::Next $(ALL_PM) > $(ACK)
$(CHMOD) 0755 $(ACK)
$(PERL_T) -c $(ACK)

$(ACK_HELP) : $(ACK)
$(PERL_T) $(ACK) --noenv --help > $(ACK_HELP) || perl -e0

$(ACK_HELP_TYPES) : $(ACK)
$(PERL_T) $(ACK) --noenv --help=types > $(ACK_HELP_TYPES) || perl -e0

MAKE_FRAG

    return $postamble;
}
Something went wrong with that request. Please try again.