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 ./pm_filter $(PREFIX) $(VER) < 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 --plugin=map \
27 --plugin=template --plugin=toc
28 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
29 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
32 rm -rf html doc/.ikiwiki
33 rm -f ikiwiki.man ikiwiki-mass-rebuild.man
36 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
37 cp templates/* $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
39 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
40 cp -a basewiki/* $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
42 install -d $(DESTDIR)$(PREFIX)/share/man/man1
43 install ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1
45 install -d $(DESTDIR)$(PREFIX)/share/man/man8
46 install ikiwiki-mass-rebuild.man $(DESTDIR)$(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
48 install -d $(DESTDIR)$(PREFIX)/sbin
49 install ikiwiki-mass-rebuild $(DESTDIR)$(PREFIX)/sbin
51 install -d $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
52 install ikiwiki-w3m.cgi $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
58 PREFIX => "/usr/local",
59 PM_FILTER => './pm_filter $(PREFIX) $(VER)',
60 EXE_FILES => ['ikiwiki'],
62 clean => {FILES => 'ikiwiki'},