summaryrefslogtreecommitdiff
path: root/Makefile.PL
blob: d51334c1fce62e2f41af0ac40ea96d05732cbfe6 (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use ExtUtils::MakeMaker;
  5. # Add a few more targets.
  6. sub MY::postamble {
  7. q{
  8. all:: extra_build
  9. clean:: extra_clean
  10. install:: extra_install
  11. pure_install:: extra_install
  12. extra_build:
  13. ./ikiwiki doc templates html --wikiname="ikiwiki" --verbose \
  14. --nosvn --exclude=/discussion
  15. ./mdwn2man doc/usage.mdwn > ikiwiki.man
  16. extra_clean:
  17. rm -rf html doc/.ikiwiki
  18. rm -f ikiwiki.man
  19. extra_install:
  20. install -d $(PREFIX)/share/ikiwiki/templates
  21. cp templates/* $(PREFIX)/share/ikiwiki/templates
  22. }
  23. }
  24. WriteMakefile(
  25. 'NAME' => 'IkiWiki',
  26. 'EXE_FILES' => ['ikiwiki'],
  27. );