# Underlay translation via po files that go in special per-language
# underlays.
- for file in `cd underlays && find . -type f -name \*.po`; do \
+ for file in `find underlays -type f -name \*.po | sed -e 's|^underlays/||'`; do \
lang=`echo $$file | sed -e 's/.po$$//' -e 's/.*\\.//'`; \
dir=`dirname "$(DESTDIR)$(PREFIX)/share/ikiwiki/po/$$lang/$$file"`; \
install -d $$dir; \
else \
rm -f $@.new; \
fi; \
- msgfmt --statistics $@ 2>&1 \
+ msgfmt --statistics $@ 2>&1; \
fi
check:
touch $@
underlays: ../ikiwiki.out underlays_copy_stamp
- ../ikiwiki.out -libdir .. -setup underlay.setup -refresh
+ ../ikiwiki.out --libdir .. --setup underlay.setup --refresh
../ikiwiki.out: ../Makefile
- make -C .. ikiwiki.out
+ $(MAKE) -C .. ikiwiki.out
../Makefile: ../Makefile.PL
cd .. && ./Makefile.PL