mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +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"; \
|
||||
fi; \
|
||||
done
|
||||
-${Q} if [ -z "${MANDIR}" || ! -s calc.1 ]; then \
|
||||
-${Q} if [ -z "${MANDIR}" ] || [ ! -s calc.1 ]; then \
|
||||
${TRUE}; \
|
||||
else \
|
||||
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}"; \
|
||||
fi; \
|
||||
fi
|
||||
-${Q} if [ -z "${CATDIR}" || ! -s calc.cat1 ]; then \
|
||||
-${Q} if [ -z "${CATDIR}" ] || [ ! -s calc.cat1 ]; then \
|
||||
${TRUE}; \
|
||||
else \
|
||||
if ${CMP} -s calc.cat1 ${T}${CATDIR}/calc.${MANEXT}; then \
|
||||
|
Reference in New Issue
Block a user