From e2c2b2bf2d3a5f4d657a8d0df4b89e9e9b39ba80 Mon Sep 17 00:00:00 2001 From: Enrique Fernandez Date: Sun, 31 May 2015 11:06:06 +0200 Subject: Allow whitespace characters in the modules attribute --- core/erlc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/erlc.mk b/core/erlc.mk index 18e8814..6790cab 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -45,7 +45,7 @@ endif app-build: erlc-include ebin/$(PROJECT).app $(eval MODULES := $(shell find ebin -type f -name \*.beam \ | sed "s/ebin\//'/;s/\.beam/',/" | sed '$$s/.$$//')) - @if [ -z "$$(grep -E '^[^%]*{modules,' src/$(PROJECT).app.src)" ]; then \ + @if [ -z "$$(grep -E '^[^%]*{\s*modules\s*,' src/$(PROJECT).app.src)" ]; then \ echo "Empty modules entry not found in $(PROJECT).app.src. Please consult the erlang.mk README for instructions." >&2; \ exit 1; \ fi -- cgit v1.2.3