]> sipb.mit.edu Git - ikiwiki.git/blobdiff - Makefile.PL
speed up incremental underlaypo runs
[ikiwiki.git] / Makefile.PL
index 61e2c147fd6c04ec3a2cbe3a79a8e61fdac4c482..4021a0a5df6a49929272b3fc9a9180ac8eea5e6d 100755 (executable)
@@ -58,17 +58,18 @@ underlaypo: ikiwiki.out
        install -d po/underlays/directives/ikiwiki/directive
        for file in doc/ikiwiki/directive/*; do \
                if [ -f "$$file" ]; then \
+                       cp -a $$file po/underlays/directives/ikiwiki/directive ||  \
                        install -m 644 $$file po/underlays/directives/ikiwiki/directive; \
                fi \
        done
        $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.out -libdir . -setup underlaypo.setup -refresh
-       rm -rf po/html po/underlays/.ikiwiki
        find po/underlays -name \*.mdwn | xargs rm -f
 
 extra_clean:
        rm -rf html doc/.ikiwiki
        rm -f *.man ikiwiki.out ikiwiki.setup plugins/*.pyc
        $(MAKE) -C po clean
+       rm -rf po/html po/underlays/.ikiwiki
 
 extra_install:
        install -d $(DESTDIR)$(PREFIX)/share/ikiwiki