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)
16 PROBABLE_INST_LIB=$(shell \\
17 if [ "$(INSTALLDIRS)" = "perl" ]; then \\
18 echo $(INSTALLPRIVLIB); \\
19 elif [ "$(INSTALLDIRS)" = "site" ]; then \\
20 echo $(INSTALLSITELIB); \\
21 elif [ "$(INSTALLDIRS)" = "vendor" ]; then \\
22 echo $(INSTALLVENDORLIB); \\
27 ./ikiwiki.in doc html --templatedir=templates --underlaydir=basewiki \
28 --wikiname="ikiwiki" --verbose --no-rcs \
29 --exclude=/discussion --no-discussion \
31 --plugin=haiku --plugin=polygen --plugin=fortune
32 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
33 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
34 ./pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB) < ikiwiki.in > ikiwiki.out
37 rm -rf html doc/.ikiwiki
38 rm -f ikiwiki.man ikiwiki-mass-rebuild.man ikiwiki.out
41 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
42 $(CP) -a templates/* $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
44 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
45 $(CP) -a basewiki/* $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
47 install -d $(DESTDIR)$(PREFIX)/share/man/man1
48 install ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1
50 install -d $(DESTDIR)$(PREFIX)/share/man/man8
51 install ikiwiki-mass-rebuild.man $(DESTDIR)$(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
53 install -d $(DESTDIR)$(PREFIX)/sbin
54 install ikiwiki-mass-rebuild $(DESTDIR)$(PREFIX)/sbin
56 install -d $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
57 install ikiwiki-w3m.cgi $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
59 install -d $(DESTDIR)$(PREFIX)/bin
60 install ikiwiki.out $(DESTDIR)$(PREFIX)/bin/ikiwiki
66 PREFIX => "/usr/local",
67 PM_FILTER => './pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB)',