]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - Makefile.PL
web commit by RecaiOktas: UTF-8 test (last entry)
[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 --no-discussion \
18                 --plugin=brokenlinks --plugin=pagecount \
19                 --plugin=orphans --plugin=haiku
20         ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
21         ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
22                 
23 extra_clean:
24         rm -rf html doc/.ikiwiki
25         rm -f ikiwiki.man
27 extra_install:
28         install -d $(PREFIX)/share/ikiwiki/templates
29         cp templates/* $(PREFIX)/share/ikiwiki/templates
31         install -d $(PREFIX)/share/ikiwiki/basewiki
32         cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
34         install -d $(PREFIX)/share/man/man1
35         install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
36         
37         install -d $(PREFIX)/share/man/man8
38         install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
39         
40         install -d $(PREFIX)/sbin
41         install ikiwiki-mass-rebuild $(PREFIX)/sbin
42 }
43 }
45 WriteMakefile(
46         'NAME'          => 'IkiWiki',
47         'PM_FILTER'     => 'grep -v "removed by Makefile"',
48         'EXE_FILES'     => ['ikiwiki'],
49 );