summaryrefslogtreecommitdiff
path: root/Makefile.PL
blob: e5d05dea46845c17855c2d3f34bc999836cab564 (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. install -d $(PREFIX)/share/ikiwiki/basewiki
  23. cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
  24. }
  25. }
  26. WriteMakefile(
  27. 'NAME' => 'IkiWiki',
  28. 'EXE_FILES' => ['ikiwiki'],
  29. );