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 \
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)/usr/share/ikiwiki/templates
37 cp templates/* $(DESTDIR)/usr/share/ikiwiki/templates
39 install -d $(DESTDIR)/usr/share/ikiwiki/basewiki
40 cp -a basewiki/* $(DESTDIR)/usr/share/ikiwiki/basewiki
42 install -d $(DESTDIR)/usr/share/man/man1
43 install ikiwiki.man $(DESTDIR)/usr/share/man/man1/ikiwiki.1
45 install -d $(DESTDIR)/usr/share/man/man8
46 install ikiwiki-mass-rebuild.man $(DESTDIR)/usr/share/man/man8/ikiwiki-mass-rebuild.8
48 install -d $(DESTDIR)/usr/sbin
49 install ikiwiki-mass-rebuild $(DESTDIR)/usr/sbin
51 install -d $(DESTDIR)/usr/lib/w3m/cgi-bin
52 install ikiwiki-w3m.cgi $(DESTDIR)/usr/lib/w3m/cgi-bin
58 'PM_FILTER' => './pm_filter $(PREFIX) $(VER)',
59 'EXE_FILES' => ['ikiwiki'],
61 'clean' => {FILES => 'ikiwiki'},