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 --plugin=tag --plugin=polygen --plugin=pagestats \
22 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
23 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
26 rm -rf html doc/.ikiwiki
27 rm -f ikiwiki.man ikiwiki-mass-rebuild.man
30 install -d $(PREFIX)/share/ikiwiki/templates
31 cp templates/* $(PREFIX)/share/ikiwiki/templates
33 install -d $(PREFIX)/share/ikiwiki/basewiki
34 cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
36 install -d $(PREFIX)/share/man/man1
37 install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
39 install -d $(PREFIX)/share/man/man8
40 install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
42 install -d $(PREFIX)/sbin
43 install ikiwiki-mass-rebuild $(PREFIX)/sbin
45 install -d $(PREFIX)/lib/w3m/cgi-bin
46 install ikiwiki-w3m.cgi $(PREFIX)/lib/w3m/cgi-bin
52 'PM_FILTER' => 'grep -v "removed by Makefile"',
53 'EXE_FILES' => ['ikiwiki'],