4 use ExtUtils::MakeMaker;
6 # Add a few more targets.
11 install:: extra_install
12 pure_install:: extra_install
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 \
21 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
22 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
25 rm -rf html doc/.ikiwiki
26 rm -f ikiwiki.man ikiwiki-mass-rebuild.man
29 install -d $(PREFIX)/share/ikiwiki/templates
30 cp templates/* $(PREFIX)/share/ikiwiki/templates
32 install -d $(PREFIX)/share/ikiwiki/basewiki
33 cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
35 install -d $(PREFIX)/share/man/man1
36 install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
38 install -d $(PREFIX)/share/man/man8
39 install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
41 install -d $(PREFIX)/sbin
42 install ikiwiki-mass-rebuild $(PREFIX)/sbin
44 install -d $(PREFIX)/lib/w3m/cgi-bin
45 install ikiwiki-w3m.cgi $(PREFIX)/lib/w3m/cgi-bin
51 'PM_FILTER' => 'grep -v "removed by Makefile"',
52 'EXE_FILES' => ['ikiwiki'],