]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - Makefile.PL
Convert postprocessordirectives into preprocessordirectives, so they are
[git.ikiwiki.info.git] / Makefile.PL
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use ExtUtils::MakeMaker;
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
14 extra_build:
15         ./ikiwiki doc html --templatedir=templates --underlaydir=basewiki \
16                 --wikiname="ikiwiki" --verbose --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
23 extra_install:
24         install -d $(PREFIX)/share/ikiwiki/templates
25         cp templates/* $(PREFIX)/share/ikiwiki/templates
27         install -d $(PREFIX)/share/ikiwiki/basewiki
28         cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
29 }
30 }
32 WriteMakefile(
33         'NAME'          => 'IkiWiki',
34         'PM_FILTER'     => 'grep -v "removed by Makefile"',
35         'EXE_FILES'     => ['ikiwiki'],
36 );