Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Move compile options to Emakefile; simplify Makefile.
  • Loading branch information
Tim Fletcher committed Sep 26, 2009
1 parent e632698 commit be1aa9646dcd1d8746dde849854cec3fa8792094
Showing 2 changed files with 5 additions and 15 deletions.
@@ -1 +1 @@
{"src/*", [debug_info, {outdir, "ebin"}, {i, "include"}]}.
{"src/*", [debug_info, warn_unused_vars, warn_unused_import, {outdir, "ebin"}]}.
@@ -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

0 comments on commit be1aa96

Please sign in to comment.