X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/7946c67d1f7538a2b131c7b79205527f86e9002c..9834caaf3295d0bd32155235608e10694d242de2:/Makefile.PL diff --git a/Makefile.PL b/Makefile.PL index aba4239d8..1add3cf1c 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -32,7 +32,7 @@ ikiwiki.out: ikiwiki.in extra_build: ikiwiki.out LANG= perl -I. $(extramodules) $(tflag) ikiwiki.out doc html --templatedir=templates \ - --underlaydir=basewiki --nousedirs\ + --underlaydir=underlays/basewiki --nousedirs\ --wikiname="ikiwiki" --verbose \ --exclude=/discussion --no-discussion --userdir=users \ --plugin=goodstuff \ @@ -49,7 +49,13 @@ 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; \