Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (72 sloc) 1.308 kB
use strict;
use warnings;
use ExtUtils::MakeMaker;
use File::Spec;
my $extdir = 'discount-2.1.5a';
my $myextlib = File::Spec->catfile($extdir, 'libmarkdown.a');
my $clean_files = join (" ",
map{ File::Spec->catfile($extdir, $_) }
qw (
Csio.o
basename.o
blocktags
cols
config.cmd
config.h
config.log
config.mak
config.md
config.sub
css.o
docheader.o
dumptree.o
echo
emmatch.o
flags.o
generate.o
html5.o
libmarkdown
libmarkdown.a
librarian.sh
main.o
makepage
markdown
markdown.o
mkd2html
mkd2html.o
mkdio.h
mkdio.o
mktags
pgm_options.o
resource.o
setup.o
tags.o
theme
theme.o
toc.o
theme
theme.o
toc.o
version.c
version.o
xml.o
xmlpage.o
));
sub MY::postamble {
return sprintf('
$(MYEXTLIB):
%s
', qq{( cd $extdir; CC='cc -fPIC' sh configure.sh; make )\n});
}
WriteMakefile(
NAME => 'Text::Markdown::Discount',
VERSION_FROM => 'lib/Text/Markdown/Discount.pm',
PREREQ_PM => {},
($] >= 5.005 ?
(ABSTRACT_FROM => 'lib/Text/Markdown/Discount.pm',
AUTHOR => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()),
LIBS => '-L' . $extdir,
INC => '-I. -I' . $extdir,
MYEXTLIB => $myextlib,
clean => { FILES => $clean_files },
);
Jump to Line
Something went wrong with that request. Please try again.