]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - Makefile.PL
* Apply patch from hb that uses the full path to a file when adding a file
[git.ikiwiki.info.git] / Makefile.PL
index 5bd1d64937d9b1df7c1bf7ba9fcba9941dc887f6..676ba06ef94d7e25e7dbb97fd0a6f140bc1d89f2 100755 (executable)
@@ -42,15 +42,13 @@ extra_build:
 
 extra_clean:
        rm -rf html doc/.ikiwiki
-       rm -f ikiwiki.man ikiwiki-mass-rebuild.man ikiwiki.out tmon.out
+       rm -f ikiwiki.man ikiwiki-mass-rebuild.man ikiwiki.out
        $(MAKE) -C po clean
 
 extra_install:
-       install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
-       $(CP) -a templates/* $(DESTDIR)$(PREFIX)/share/ikiwiki/templates
-
-       install -d $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
-       $(CP) -aL basewiki/* $(DESTDIR)$(PREFIX)/share/ikiwiki/basewiki
+       install -d $(DESTDIR)$(PREFIX)/share/ikiwiki
+       find basewiki templates \( -type f -or -type l \) ! -regex '.*\.svn.*' \
+               -exec cp --parents -aL {} $(DESTDIR)$(PREFIX)/share/ikiwiki \;
 
        install -d $(DESTDIR)$(PREFIX)/share/man/man1
        install -m 644 ikiwiki.man $(DESTDIR)$(PREFIX)/share/man/man1/ikiwiki.1