* Title metadata of inlined pages now shows up in blogs, although not yet
[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 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 --plugin=meta \
20                 --plugin=tag --plugin=polygen --plugin=pagestats \
21                 --plugin=fortune --plugin=aggregate
22         ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
23         ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
24                 
25 extra_clean:
26         rm -rf html doc/.ikiwiki
27         rm -f ikiwiki.man ikiwiki-mass-rebuild.man
28
29 extra_install:
30         install -d $(PREFIX)/share/ikiwiki/templates
31         cp templates/* $(PREFIX)/share/ikiwiki/templates
32
33         install -d $(PREFIX)/share/ikiwiki/basewiki
34         cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
35
36         install -d $(PREFIX)/share/man/man1
37         install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
38         
39         install -d $(PREFIX)/share/man/man8
40         install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
41         
42         install -d $(PREFIX)/sbin
43         install ikiwiki-mass-rebuild $(PREFIX)/sbin
44
45         install -d $(PREFIX)/lib/w3m/cgi-bin
46         install ikiwiki-w3m.cgi $(PREFIX)/lib/w3m/cgi-bin
47 }
48 }
49
50 WriteMakefile(
51         'NAME'          => 'IkiWiki',
52         'PM_FILTER'     => 'grep -v "removed by Makefile"',
53         'EXE_FILES'     => ['ikiwiki'],
54 );