X-Git-Url: https://scripts.mit.edu/gitweb/www/ikiwiki.git/blobdiff_plain/f23ebaad2eae04263fe195a10712cb633c32dee9..16d43b0b03dcee32c6d5badd01091915876c4d76:/Makefile.PL diff --git a/Makefile.PL b/Makefile.PL index 5514a98ce..1add3cf1c 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -26,11 +26,13 @@ PROBABLE_INST_LIB=$(shell \\ tflag=$(shell if [ "$$NOTAINT" != 0 ]; then printf -- "-T"; fi) extramodules=$(shell if [ "$$PROFILE" = 1 ]; then printf -- "-MDevel::Profiler"; fi) -extra_build: +ikiwiki.out: ikiwiki.in ./pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB) < ikiwiki.in > ikiwiki.out chmod +x ikiwiki.out - LANG=C perl -I. $(extramodules) $(tflag) ikiwiki.out doc html --templatedir=templates \ - --underlaydir=basewiki --nousedirs\ + +extra_build: ikiwiki.out + LANG= perl -I. $(extramodules) $(tflag) ikiwiki.out doc html --templatedir=templates \ + --underlaydir=underlays/basewiki --nousedirs\ --wikiname="ikiwiki" --verbose \ --exclude=/discussion --no-discussion --userdir=users \ --plugin=goodstuff \ @@ -47,12 +49,23 @@ extra_clean: extra_install: install -d $(DESTDIR)$(PREFIX)/share/ikiwiki - for dir in `find basewiki templates -follow -type d ! -regex '.*\.svn.*'`; do \ + for dir in `cd underlays && find . -follow -type d ! -regex '.*\.svn.*'`; do \ + install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \ + for file in `find underlays/$$dir -follow -maxdepth 1 -type f`; do \ + install -m 644 $$file $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \ + done; \ + done + for dir in `find templates -follow -type d ! -regex '.*\.svn.*'`; do \ install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \ for file in `find $$dir -follow -maxdepth 1 -type f`; do \ install -m 644 $$file $(DESTDIR)$(PREFIX)/share/ikiwiki/$$dir; \ done; \ done + + install -d $(DESTDIR)$(PREFIX)/lib/ikiwiki/plugins + for file in `find plugins -maxdepth 1 -type f`; do \ + install -m 755 $$file $(DESTDIR)$(PREFIX)/lib/ikiwiki/plugins; \ + done; \ install -d $(DESTDIR)$(PREFIX)/share/man/man1 install -m 644 ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1