Skip to content
Browse files

Move compile options to Emakefile; simplify Makefile.

  • Loading branch information...
1 parent 9df9da8 commit d831b0367bd235a57748615d6d2c219e70238dfe @tim committed Sep 26, 2009
Showing with 4 additions and 11 deletions.
  1. +1 −1 Emakefile
  2. +3 −10 Makefile
View
2 Emakefile
@@ -1 +1 @@
-{"src/*", [debug_info, {outdir, "ebin"}, {i, "include"}]}.
+{"src/*", [debug_info, warn_unused_vars, warn_unused_import, {outdir, "ebin"}]}.
View
13 Makefile
@@ -1,13 +1,6 @@
-SOURCE_FILES := $(wildcard src/*.erl)
-
-
-all: ebin
-
-ebin: $(SOURCE_FILES:src/%.erl=ebin/%.beam)
-
-ebin/%.beam: src/%.erl
+all:
@test -d ebin || mkdir ebin
- erlc -W +debug_info -o ebin $<
+ @erl -make
clean:
- rm -rf ebin erl_crash.dump
+ @rm -rf ebin/* erl_crash.dump

0 comments on commit d831b03

Please sign in to comment.
Something went wrong with that request. Please try again.