Skip to content

Commit 60698d2

Browse files
committed
fix Makefile for legacy shell
The top level Makefile needs to use multiple []'s between ||'s to not cause problems for legacy shells such as the Bourne shell. For example: ```make -${Q} if [ -z "${MANDIR}" ] || [ ! -s calc.1 ]; then \ ... -${Q} if [ -z "${CATDIR}" ] || [ ! -s calc.cat1 ]; then \ ```
1 parent 3e7ccfd commit 60698d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,7 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile
37743774
echo "removed old ${T}${CALC_INCDIR}/string.h"; \
37753775
fi; \
37763776
done
3777-
-${Q} if [ -z "${MANDIR}" || ! -s calc.1 ]; then \
3777+
-${Q} if [ -z "${MANDIR}" ] || [ ! -s calc.1 ]; then \
37783778
${TRUE}; \
37793779
else \
37803780
if ${CMP} -s calc.1 ${T}${MANDIR}/calc.${MANEXT}; then \
@@ -3788,7 +3788,7 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile
37883788
echo "installed ${T}${MANDIR}/calc.${MANEXT}"; \
37893789
fi; \
37903790
fi
3791-
-${Q} if [ -z "${CATDIR}" || ! -s calc.cat1 ]; then \
3791+
-${Q} if [ -z "${CATDIR}" ] || [ ! -s calc.cat1 ]; then \
37923792
${TRUE}; \
37933793
else \
37943794
if ${CMP} -s calc.cat1 ${T}${CATDIR}/calc.${MANEXT}; then \

0 commit comments

Comments
 (0)