From e6131008c8a2fbb1a71469544a35469abb1a5408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Tue, 18 Jun 2019 09:43:41 +0200 Subject: Use echo(1) instead of printf(1) in `core-autopatch-extended-erlc-opts` ... to create the `autopatch-couchbeam` recipe in the testcase. Newlines characters were interpreted by echo(1) in the `core-autopatch-extended-erlc-opts` recipe which was too early: the generated recipe was malformed. Using echo(1) and its implicit appended newline character fixes the issue. --- test/core_autopatch.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core_autopatch.mk b/test/core_autopatch.mk index e9364b8..fd2497d 100644 --- a/test/core_autopatch.mk +++ b/test/core_autopatch.mk @@ -37,7 +37,7 @@ core-autopatch-extended-erlc-opts: init $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = couchbeam\n"}' $(APP)/Makefile $i "Extend autopatch-couchbeam to add options to its ERLC_OPTS" - $t echo "autopatch-couchbeam:: ; printf '\nERLC_OPTS += -DWITH_JIFFY\n' >> \$$(DEPS_DIR)/couchbeam/Makefile" >> $(APP)/Makefile + $t echo "autopatch-couchbeam:: ; echo >> \$$(DEPS_DIR)/couchbeam/Makefile; echo 'ERLC_OPTS += -DWITH_JIFFY' >> \$$(DEPS_DIR)/couchbeam/Makefile" >> $(APP)/Makefile $i "Build the application" $t $(MAKE) -C $(APP) $v -- cgit v1.2.3