$NetBSD: patch-Makefile,v 1.1 2020/03/17 14:19:03 ryoon Exp $

* Fix POSIX shell portability issues

--- Makefile.orig	2018-10-01 21:26:14.000000000 +0000
+++ Makefile
@@ -389,9 +389,9 @@ TEST_FLAGS += --force-new-ctest-process 
 # 'make test' does a full build and then runs all tests
 test: cmake
 	@ ${CMAKE} -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests ${TEST_FLAGS}..."
-	@ # if [ "${CODECOV}" == "1" ] ; then lcov -b ${build_dir} -d ${build_dir} -z ; rm -rf ${build_dir}/cov ; fi
+	@ # if [ "${CODECOV}" = "1" ] ; then lcov -b ${build_dir} -d ${build_dir} -z ; rm -rf ${build_dir}/cov ; fi
 	@ ( cd ${build_dir} ; PYTHONPATH=${PWD}/${build_dir}/src/python ctest -E broken ${TEST_FLAGS} )
-	@ ( if [ "${CODECOV}" == "1" ] ; then \
+	@ ( if [ "${CODECOV}" = "1" ] ; then \
 	      cd ${build_dir} ; \
 	      lcov -b . -d . -c -o cov.info ; \
 	      lcov --remove cov.info "/usr*" -o cov.info ; \
