Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move compile options to Emakefile; simplify Makefile.

  • Loading branch information...
commit be1aa9646dcd1d8746dde849854cec3fa8792094 1 parent e632698
@tim authored
Showing with 5 additions and 15 deletions.
  1. +1 −1  Emakefile
  2. +4 −14 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
18 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
Please sign in to comment.
Something went wrong with that request. Please try again.