Skip to content
This repository has been archived by the owner. It is now read-only.
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/ $(SOURCE_FILES:src/%.erl=ebin/%.beam)

ebin/ src/
@test -d ebin || mkdir ebin
cp src/ ebin/

ebin/%.beam: src/%.erl
@test -d ebin || mkdir ebin
erlc -W +debug_info -o ebin $<
@cp src/ ebin/
@erl -make

@rm -rf ebin erl_crash.dump
@rm -rf ebin/* erl_crash.dump

0 comments on commit be1aa96

Please sign in to comment.