+underlaypo: ikiwiki.out
+ # copy all the files we want to translate into the
+ # po/underlays scrdir.
+ for file in `find underlays -follow -name \*.mdwn`; do \
+ install -d po/$$(dirname $$file); \
+ cp -aL $$file po/$$file 2>/dev/null || \
+ install -m 644 $$file po/$$file; \
+ done
+ install -d po/underlays/directives/ikiwiki/directive
+ for file in doc/ikiwiki/directive/*; do \
+ if [ -f "$$file" ]; then \
+ 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
+