Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

actually use ERLC_FLAGS with erlc; always build with debug info; remo…

…ve useless -W flag
  • Loading branch information...
commit f40bbf67310d4b93ee82e2046fcf77e0a85e6072 1 parent 29dfe43
Richard Carlsson authored
Showing with 7 additions and 4 deletions.
  1. +3 −0  Makefile
  2. +4 −4 src/Makefile
View
3  Makefile
@@ -3,6 +3,9 @@
all:
(cd src;$(MAKE))
+debug:
+ (cd src;$(MAKE) debug)
+
clean:
(cd src;$(MAKE) clean)
View
8 src/Makefile
@@ -23,7 +23,7 @@ MODULES=gettext \
EBIN_FILES=$(MODULES:%=../ebin/%.beam) ../ebin/gettext.app
ERL_FILES=$(MODULES:%=%.erl)
-ERLC_FLAGS+=-W
+ERLC_FLAGS+=+debug_info
INCLUDES=gettext_internal.hrl
@@ -36,7 +36,7 @@ APPSCRIPT = '$$vsn=shift; $$mods=""; while(@ARGV){ $$_=shift; s/^([A-Z].*)$$/\'\
all: $(EBIN_FILES)
debug:
- $(MAKE) ERLC_FLAGS+="$(ERLC_FLAGS) +debug_info -Ddebug"
+ $(MAKE) ERLC_FLAGS+="$(ERLC_FLAGS) -Ddebug"
docs: ../doc/index.html
@@ -47,8 +47,8 @@ clean:
rm -f $(EBIN_FILES) ../doc/*.html ../doc/edoc-info \
../doc/stylesheet.css ../doc/erlang.png
-../ebin/%.beam: %.erl $(INCLUDES)
- erlc -o ../ebin $<
+../ebin/%.beam: %.erl $(INCLUDES) Makefile
+ erlc -o ../ebin $(ERLC_FLAGS) $<
../ebin/%.app: %.app.src ../vsn.mk Makefile
perl -e $(APPSCRIPT) "$(VSN)" $(MODULES) < $< > $@
Please sign in to comment.
Something went wrong with that request. Please try again.