4 use ExtUtils::MakeMaker;
6 # Add a few more targets.
11 install:: extra_install
12 pure_install:: extra_install
14 VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)
17 perl -pe '$$_="" if /use lib/; $$_="our \$$version=\"$(VER)\";\n" if /VERSION_AUTOREPLACE/' ikiwiki.pl > ikiwiki
20 ./ikiwiki.pl doc html --templatedir=templates --underlaydir=basewiki \
21 --wikiname="ikiwiki" --verbose --no-rcs \
22 --exclude=/discussion --no-discussion \
23 --plugin=brokenlinks --plugin=pagecount \
24 --plugin=orphans --plugin=haiku --plugin=meta \
25 --plugin=tag --plugin=polygen --plugin=pagestats \
26 --plugin=fortune --plugin=aggregate
27 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
28 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
31 rm -rf html doc/.ikiwiki
32 rm -f ikiwiki.man ikiwiki-mass-rebuild.man
35 install -d $(PREFIX)/share/ikiwiki/templates
36 cp templates/* $(PREFIX)/share/ikiwiki/templates
38 install -d $(PREFIX)/share/ikiwiki/basewiki
39 cp -a basewiki/* $(PREFIX)/share/ikiwiki/basewiki
41 install -d $(PREFIX)/share/man/man1
42 install ikiwiki.man $(PREFIX)/share/man/man1/ikiwiki.1
44 install -d $(PREFIX)/share/man/man8
45 install ikiwiki-mass-rebuild.man $(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
47 install -d $(PREFIX)/sbin
48 install ikiwiki-mass-rebuild $(PREFIX)/sbin
50 install -d $(PREFIX)/lib/w3m/cgi-bin
51 install ikiwiki-w3m.cgi $(PREFIX)/lib/w3m/cgi-bin
57 'PM_FILTER' => 'grep -v "removed by Makefile"',
58 'EXE_FILES' => ['ikiwiki'],
59 'clean' => {FILES => 'ikiwiki'},