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
20 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
21 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
24 rm -rf html doc/.ikiwiki
25 rm -f ikiwiki.man ikiwiki-mass-rebuild.man
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
37 install -d $(PREFIX)/share/man/man8
38 install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
40 install -d $(PREFIX)/sbin
41 install ikiwiki-mass-rebuild $(PREFIX)/sbin
47 'PM_FILTER' => 'grep -v "removed by Makefile"',
48 'EXE_FILES' => ['ikiwiki'],