$(ALLDIRS): if [ "$@" = po ] ; then \ for i in po/Makefile* ; do \ if [ -f "$$i" ] ; then \ if grep '^mkinstalldirs.*=.*case' $$i ; then \ echo "fixing broken $$i which causes wrong path to mkinstalldirs to be used"; \ perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$$(SHELL) \$$(MKINSTALLDIRS):' $$i; \ fi \ fi \ done \ fi if [ "$@" != po -o "$(USE_NLS)" != "no" ] ; then \ cd $@; $(MAKE) localedir=${LOCALEDIR} \ DESTDIR=$(DESTDIR) $(MAKETARGET) ; \ fi