mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
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 \ ```
This commit is contained in:
4
Makefile
4
Makefile
@@ -3774,7 +3774,7 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile
|
|||||||
echo "removed old ${T}${CALC_INCDIR}/string.h"; \
|
echo "removed old ${T}${CALC_INCDIR}/string.h"; \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
-${Q} if [ -z "${MANDIR}" || ! -s calc.1 ]; then \
|
-${Q} if [ -z "${MANDIR}" ] || [ ! -s calc.1 ]; then \
|
||||||
${TRUE}; \
|
${TRUE}; \
|
||||||
else \
|
else \
|
||||||
if ${CMP} -s calc.1 ${T}${MANDIR}/calc.${MANEXT}; then \
|
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
|
|||||||
echo "installed ${T}${MANDIR}/calc.${MANEXT}"; \
|
echo "installed ${T}${MANDIR}/calc.${MANEXT}"; \
|
||||||
fi; \
|
fi; \
|
||||||
fi
|
fi
|
||||||
-${Q} if [ -z "${CATDIR}" || ! -s calc.cat1 ]; then \
|
-${Q} if [ -z "${CATDIR}" ] || [ ! -s calc.cat1 ]; then \
|
||||||
${TRUE}; \
|
${TRUE}; \
|
||||||
else \
|
else \
|
||||||
if ${CMP} -s calc.cat1 ${T}${CATDIR}/calc.${MANEXT}; then \
|
if ${CMP} -s calc.cat1 ${T}${CATDIR}/calc.${MANEXT}; then \
|
||||||
|
Reference in New Issue
Block a user