diff options
author | Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr> | 2009-12-14 23:04:00 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2011-02-18 12:20:41 +0100 |
commit | dd3e666c5114f81c9518e9f5ba14959ced079ab6 (patch) | |
tree | 87b38ff7f2c660e5426c371fae6dc66064e1fd77 /lib/compiler/test/compile_SUITE_data/simple.erl | |
parent | ab1c28eadc968d8475ce42a97b2ae143590d5cc1 (diff) | |
download | otp-dd3e666c5114f81c9518e9f5ba14959ced079ab6.tar.gz otp-dd3e666c5114f81c9518e9f5ba14959ced079ab6.tar.bz2 otp-dd3e666c5114f81c9518e9f5ba14959ced079ab6.zip |
Add dependencies Makefile generation to erlc(1) and compile(3)
This is useful when a project is built with Makefiles and erlc(1)
instead of EMakefiles. Tracking dependencies by hand is error-prone and
it becomes painful when using external application headers like EUnit's
one.
A dependencies Makefile will look like this:
module.beam: module.erl \
/usr/local/lib/erlang/lib/eunit-2.1.4/include/eunit.hrl \
header.hrl
When included in the main Makefile, 'module' will be recompiled only
when needed.
GCC offers the same feature and new erlc(1) options are compatible with
it.
More informations at:
http://wiki.github.com/dumbbell/otp/dependencies-makefile
Diffstat (limited to 'lib/compiler/test/compile_SUITE_data/simple.erl')
-rw-r--r-- | lib/compiler/test/compile_SUITE_data/simple.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compiler/test/compile_SUITE_data/simple.erl b/lib/compiler/test/compile_SUITE_data/simple.erl index 2021056388..8e98852417 100644 --- a/lib/compiler/test/compile_SUITE_data/simple.erl +++ b/lib/compiler/test/compile_SUITE_data/simple.erl @@ -37,3 +37,7 @@ foo() -> {?included_value, ?foo_value}. -endif. + +-ifdef(include_generated). +-include("generated.hrl"). +-endif. |