diff options
author | Jean-Sébastien Pédron <[email protected]> | 2019-06-18 09:43:41 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-06-20 14:44:32 +0200 |
commit | e6131008c8a2fbb1a71469544a35469abb1a5408 (patch) | |
tree | 81c7c12bfdd4275675f1b92264f4f44d99a0b9da | |
parent | 674c7ea75af5f26ef574ed403bbba9f89ec2344a (diff) | |
download | erlang.mk-e6131008c8a2fbb1a71469544a35469abb1a5408.tar.gz erlang.mk-e6131008c8a2fbb1a71469544a35469abb1a5408.tar.bz2 erlang.mk-e6131008c8a2fbb1a71469544a35469abb1a5408.zip |
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.
-rw-r--r-- | test/core_autopatch.mk | 2 |
1 files changed, 1 insertions, 1 deletions
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 |