aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorcrownedgrouse <[email protected]>2014-08-03 14:50:02 +0200
committercrownedgrouse <[email protected]>2014-08-05 21:37:06 +0200
commit22fcb9c76a2c3e48a3a8233b99118a5bb59f2a4a (patch)
tree22d1a6f8e84b2279668901a41846f2df99dd920b /core
parent4283f9d3fd13f21bcfa9463e8e43d33fe54e8b70 (diff)
downloaderlang.mk-22fcb9c76a2c3e48a3a8233b99118a5bb59f2a4a.tar.gz
erlang.mk-22fcb9c76a2c3e48a3a8233b99118a5bb59f2a4a.tar.bz2
erlang.mk-22fcb9c76a2c3e48a3a8233b99118a5bb59f2a4a.zip
Recompile all erl files on hrl file modification
Diffstat (limited to 'core')
-rw-r--r--core/erlc.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index 87d10d8..2ca7040 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -22,8 +22,10 @@ xyrl_verbose_0 = @echo " XYRL " $(filter %.xrl %.yrl,$(?F));
xyrl_verbose = $(xyrl_verbose_$(V))
# Core targets.
+erlc-include:
+ -@find include/ src/ -type f -name \*.hrl -newer ebin -exec touch $(shell find src/ -type f -name "*.erl") \;
-app:: ebin/$(PROJECT).app
+app:: erlc-include ebin/$(PROJECT).app
$(eval MODULES := $(shell find ebin -type f -name \*.beam \
| sed "s/ebin\//'/;s/\.beam/',/" | sed '$$s/.$$//'))
$(appsrc_verbose) cat src/$(PROJECT).app.src \