]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - Makefile.PL
* Patch from Thomas Schwinge to switch from --svn to --rcs=svn, etc,
[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 --no-rcs \
17                 --exclude=/discussion --plugin=brokenlinks \
18                 --plugin=pagecount --plugin=orphans
19         ./mdwn2man doc/usage.mdwn > ikiwiki.man
20                 
21 extra_clean:
22         rm -rf html doc/.ikiwiki
23         rm -f ikiwiki.man
25 extra_install:
26         install -d $(PREFIX)/share/ikiwiki/templates
27         cp templates/* $(PREFIX)/share/ikiwiki/templates
29         install -d $(PREFIX)/share/ikiwiki/basewiki
30         cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
32         install -d $(PREFIX)/share/man/man1
33         install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
34 }
35 }
37 WriteMakefile(
38         'NAME'          => 'IkiWiki',
39         'PM_FILTER'     => 'grep -v "removed by Makefile"',
40         'EXE_FILES'     => ['ikiwiki'],
41 );