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 ./pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB) < ikiwiki.in > ikiwiki.out
29 PERL5LIB=.:${PERL5LIB} LANG=C ./ikiwiki.in doc html --templatedir=templates \
30 --underlaydir=basewiki \
31 --wikiname="ikiwiki" --verbose --no-rcs \
32 --exclude=/discussion --no-discussion --userdir=users \
34 --plugin=haiku --plugin=polygen --plugin=fortune
35 ./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
36 ./mdwn2man ikiwiki-mass-rebuild 8 doc/ikiwiki-mass-rebuild.mdwn > ikiwiki-mass-rebuild.man
40 rm -rf html doc/.ikiwiki
41 rm -f ikiwiki.man ikiwiki-mass-rebuild.man ikiwiki.out
45 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
46 $(CP) -a templates/* $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
48 install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
49 $(CP) -aL basewiki/* $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
51 install -d $(DESTDIR)$(PREFIX)/share/man/man1
52 install -m 644 ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1
54 install -d $(DESTDIR)$(PREFIX)/share/man/man8
55 install -m 644 ikiwiki-mass-rebuild.man $(DESTDIR)$(PREFIX)/share/man/man8/ikiwiki-mass-rebuild.8
57 install -d $(DESTDIR)$(PREFIX)/sbin
58 install ikiwiki-mass-rebuild $(DESTDIR)$(PREFIX)/sbin
60 install -d $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
61 install ikiwiki-w3m.cgi $(DESTDIR)$(PREFIX)/lib/w3m/cgi-bin
63 install -d $(DESTDIR)$(PREFIX)/bin
64 install ikiwiki.out $(DESTDIR)$(PREFIX)/bin/ikiwiki
66 $(MAKE) -C po install PREFIX=$(PREFIX)
72 PREFIX => "/usr/local",
73 PM_FILTER => './pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB)',
77 'Text::Markdown' => 0,
79 'HTML::Template' => 0,
80 'HTML::Scrubber' => 0,
81 'CGI::FormBuilder' => 3.02.02,
82 'Time::Duration' => 0,
84 'Mail::Sendmail' => 0,