Right way to test in Makefile
`-[ "$str" = "foo" ] && $(MAKE) -C bar` ignores errors while making bar,
better to use full `if-then` clause.
@@ -255,7 +255,9 @@ BLD_CONFIG_SHELL=$($(BLD_ARCH)_CONFIG_SHELL)
$(GPPGDIR)/GNUmakefile : $(GPPGDIR)/configure env.sh
rm -rf $(INSTLOC)
mkdir -p $(GPPGDIR)
- -[ "$(BLD_ARCH)" = "win32" ] && $(MAKE) -C $(GPPGDIR)/src/bin/gpfdist/ext BLD_TOP=$(BLD_TOP)
+ if [ "$(BLD_ARCH)" = "win32" ]; then \
+ $(MAKE) -C $(GPPGDIR)/src/bin/gpfdist/ext BLD_TOP=$(BLD_TOP); \
+ fi
cd $(GPPGDIR) && CC="$(strip $(BLD_CC) $(BLD_CFLAGS))" \
CFLAGS=$(INSTCFLAGS) $(BLD_CONFIG_SHELL) \
./configure $(CONFIGFLAGS) \
