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 ./ikiwiki.pl doc html --templatedir=templates --underlaydir=basewiki \
18 --wikiname="ikiwiki" --verbose --no-rcs \
19 --exclude=/discussion --no-discussion \
20 --plugin=brokenlinks --plugin=pagecount \
21 --plugin=orphans --plugin=haiku --plugin=meta \
22 --plugin=tag --plugin=polygen --plugin=pagestats \
23 --plugin=fortune --plugin=aggregate --plugin=map \
24 --plugin=template --plugin=toc
25 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
26 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
27 ./pm_filter $(PREFIX) $(VER) < ikiwiki.pl > ikiwiki.out
30 rm -rf html doc/.ikiwiki
31 rm -f ikiwiki.man ikiwiki-mass-rebuild.man ikiwiki.out
34 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
35 $(CP) -a templates/* $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
37 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
38 $(CP) -a basewiki/* $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
40 install -d $(DESTDIR)$(PREFIX)/share/man/man1
41 install ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1
43 install -d $(DESTDIR)$(PREFIX)/share/man/man8
44 install ikiwiki-mass-rebuild.man $(DESTDIR)$(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
46 install -d $(DESTDIR)$(PREFIX)/sbin
47 install ikiwiki-mass-rebuild $(DESTDIR)$(PREFIX)/sbin
49 install -d $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
50 install ikiwiki-w3m.cgi $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
52 install -d $(DESTDIR)$(PREFIX)/bin
53 install ikiwiki.out $(DESTDIR)$(PREFIX)/bin/ikiwiki
59 PREFIX => "/usr/local",
60 PM_FILTER => './pm_filter $(PREFIX) $(VER)',