aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-08-15 19:43:07 +0200
committerLoïc Hoguin <[email protected]>2014-08-15 19:43:07 +0200
commitff8eb2a3fe462687fa9e0a81efd3b1b5ca70afe7 (patch)
tree03f4372198e8c77580c4e6105a02d7eeb0fd69b9
parentfb3f0ba3148b8a6db7a556e1d5e2c1afc6466cef (diff)
downloaderlang.mk-ff8eb2a3fe462687fa9e0a81efd3b1b5ca70afe7.tar.gz
erlang.mk-ff8eb2a3fe462687fa9e0a81efd3b1b5ca70afe7.tar.bz2
erlang.mk-ff8eb2a3fe462687fa9e0a81efd3b1b5ca70afe7.zip
Silence erlc-include target when include/ is missing
-rw-r--r--core/erlc.mk2
-rw-r--r--erlang.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index c75c656..1c169cc 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -64,7 +64,7 @@ clean:: clean-app
erlc-include:
-@if [ -d ebin/ ]; then \
- find include/ src/ -type f -name \*.hrl -newer ebin -exec touch $(shell find src/ -type f -name "*.erl") \; ; \
+ find include/ src/ -type f -name \*.hrl -newer ebin -exec touch $(shell find src/ -type f -name "*.erl") \; 2>/dev/null || echo -n; \
fi
clean-app:
diff --git a/erlang.mk b/erlang.mk
index 310d663..62f9ebe 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -242,7 +242,7 @@ clean:: clean-app
erlc-include:
-@if [ -d ebin/ ]; then \
- find include/ src/ -type f -name \*.hrl -newer ebin -exec touch $(shell find src/ -type f -name "*.erl") \; ; \
+ find include/ src/ -type f -name \*.hrl -newer ebin -exec touch $(shell find src/ -type f -name "*.erl") \; 2>/dev/null || echo -n; \
fi
clean-app: