Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

a few small Makefile tweaks

  • Loading branch information...
commit 6766103aa9b19da71799030eebe60eb2e708eac9 1 parent 817b125
@wg authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 Makefile
View
7 Makefile
@@ -6,7 +6,7 @@ ERLC := erlc
# ------------------------------------------------------------------------
-ERLC_FLAGS := -Wall -I include
+ERLC_FLAGS := -Wall -I include +debug_info
SRC := $(wildcard src/*.erl)
TESTS := $(wildcard test_src/*.erl)
@@ -26,7 +26,8 @@ release: app
@tar czvf $(RELEASE) $(APPDIR)
clean:
- @rm -f ebin/*.{beam,app}
+ @rm -f ebin/*.beam
+ @rm -f ebin/$(NAME).app
@rm -rf $(NAME)-$(VERSION) $(NAME)-*.tar.gz
test: $(TESTS:test_src/%.erl=test_ebin/%.beam) compile
@@ -41,7 +42,7 @@ test: $(TESTS:test_src/%.erl=test_ebin/%.beam) compile
ebin/%.beam : src/%.erl
$(ERLC) $(ERLC_FLAGS) -o $(dir $@) $<
-ebin/%.app : src/%.app.src
+ebin/%.app : src/%.app.src Makefile
sed -e s/VERSION/$(VERSION)/g $< > $@
test_ebin/%.beam : test_src/%.erl
Please sign in to comment.
Something went wrong with that request. Please try again.