aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/compile_SUITE_data/simple-target1.mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2009-12-14 23:04:00 +0100
committerBjörn Gustavsson <[email protected]>2011-02-18 12:20:41 +0100
commitdd3e666c5114f81c9518e9f5ba14959ced079ab6 (patch)
tree87b38ff7f2c660e5426c371fae6dc66064e1fd77 /lib/compiler/test/compile_SUITE_data/simple-target1.mk
parentab1c28eadc968d8475ce42a97b2ae143590d5cc1 (diff)
downloadotp-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-target1.mk')
-rw-r--r--lib/compiler/test/compile_SUITE_data/simple-target1.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/test/compile_SUITE_data/simple-target1.mk b/lib/compiler/test/compile_SUITE_data/simple-target1.mk
new file mode 100644
index 0000000000..dd9fa0d6e5
--- /dev/null
+++ b/lib/compiler/test/compile_SUITE_data/simple-target1.mk
@@ -0,0 +1 @@
+$target: $(srcdir)/simple.erl $(srcdir)/include/simple.hrl