This repository has been archived by the owner. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1 +1 @@ | ||
{"src/*", [debug_info, {outdir, "ebin"}, {i, "include"}]}. | ||
{"src/*", [debug_info, warn_unused_vars, warn_unused_import, {outdir, "ebin"}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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 |