Browse Source

Merge branch 'fix-modules-attr-app-src' of https://github.com/efcasado/erlang.mk

Loïc Hoguin 9 years ago
parent
commit
553442b0f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/erlc.mk

+ 1 - 1
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