Skip to content

Commit

Permalink
a few small Makefile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Aug 29, 2011
1 parent 817b125 commit 6766103
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6766103

Please sign in to comment.