ALLDIRS if po then for in po Makefile do if -f then if grep mkinstalld

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
$(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