]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - Makefile.PL
use empty underlay dirs when building po underlays
[www/ikiwiki.git] / Makefile.PL
index 61e2c147fd6c04ec3a2cbe3a79a8e61fdac4c482..3db5c0d4063fffb54d7fdabccc61cca6b4ec3cc1 100755 (executable)
@@ -58,17 +58,19 @@ 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
+       install -d po/underlays/empty
        $(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