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