Browse Source

Move compile options to Emakefile; simplify Makefile.

Tim Fletcher 15 years ago
parent
commit
be1aa9646d
2 changed files with 5 additions and 15 deletions
  1. 1 1
      Emakefile
  2. 4 14
      Makefile

+ 1 - 1
Emakefile

@@ -1 +1 @@
-{"src/*", [debug_info, {outdir, "ebin"}, {i, "include"}]}.
+{"src/*", [debug_info, warn_unused_vars, warn_unused_import, {outdir, "ebin"}]}.

+ 4 - 14
Makefile

@@ -1,17 +1,7 @@
-SOURCE_FILES := $(wildcard src/*.erl)
-
-
-all: ebin
-
-ebin: ebin/oauth.app $(SOURCE_FILES:src/%.erl=ebin/%.beam)
-
-ebin/oauth.app: src/oauth.app
-	@test -d ebin || mkdir ebin
-	cp src/oauth.app ebin/oauth.app
-
-ebin/%.beam: src/%.erl
+all:
 	@test -d ebin || mkdir ebin
-	erlc -W +debug_info -o ebin $<
+	@cp src/oauth.app ebin/
+	@erl -make
 
 clean:
-	@rm -rf ebin erl_crash.dump
+	@rm -rf ebin/* erl_crash.dump