Text::Markdown::Discount
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.5 KiB

15 years ago
15 years ago
15 years ago
15 years ago
  1. use strict;
  2. use warnings;
  3. use ExtUtils::MakeMaker;
  4. use File::Spec;
  5. my $extdir = 'discount-1.3.4';
  6. my $myextlib = File::Spec->catfile($extdir, 'libmarkdown.a');
  7. my $clean_files = join (" ",
  8. map{ File::Spec->catfile($extdir, $_) }
  9. qw (
  10. markdwon mkd2html makepage theme libmarkdown.a
  11. Csio.o
  12. config.cmd
  13. config.h
  14. config.log
  15. config.mak
  16. config.md
  17. config.sub
  18. docheader.o
  19. dumptree.o
  20. generate.o
  21. main.o
  22. markdown
  23. markdown.1
  24. markdown.o
  25. mkd2html.o
  26. mkdio.o
  27. resource.o
  28. theme.o
  29. toc.o
  30. version.c
  31. version.o
  32. xmlpage.o
  33. ));
  34. sub MY::postamble {
  35. return sprintf('
  36. $(MYEXTLIB):
  37. %s
  38. ', qq{( cd $extdir; sh configure.sh; make )\n});
  39. }
  40. WriteMakefile(
  41. NAME => 'Text::Markdown::Discount',
  42. VERSION_FROM => 'lib/Text/Markdown/Discount.pm',
  43. PREREQ_PM => {},
  44. ($] >= 5.005 ?
  45. (ABSTRACT_FROM => 'lib/Text/Markdown/Discount.pm',
  46. AUTHOR => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()),
  47. LIBS => '-L' . $extdir,
  48. INC => '-I. -I' . $extdir,
  49. MYEXTLIB => $myextlib,
  50. clean => { FILES => $clean_files },
  51. );