diff options
author | Loïc Hoguin <[email protected]> | 2014-11-19 12:27:34 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-11-19 12:27:34 +0200 |
commit | a02eaa4c8b26fdbdaf7b152b98aa3cb66c8c253f (patch) | |
tree | dcb415f532da7a2ea911aeb3e7f338e8f958c2df | |
parent | 6178156e4e551a7fc4b531f636eb5b0b8605028b (diff) | |
download | erlang.mk-a02eaa4c8b26fdbdaf7b152b98aa3cb66c8c253f.tar.gz erlang.mk-a02eaa4c8b26fdbdaf7b152b98aa3cb66c8c253f.tar.bz2 erlang.mk-a02eaa4c8b26fdbdaf7b152b98aa3cb66c8c253f.zip |
Don't try to compile mibs if the mibs/ directory is missing
-rw-r--r-- | core/erlc.mk | 2 | ||||
-rw-r--r-- | erlang.mk | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/erlc.mk b/core/erlc.mk index 5c38fc9..cbb7471 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -68,9 +68,11 @@ ifneq ($(wildcard src/),) ebin/$(PROJECT).app:: @mkdir -p ebin/ +ifneq ($(wildcard mibs/),) ebin/$(PROJECT).app:: $(shell find mibs -type f -name \*.mib) @mkdir -p priv/mibs/ include $(if $(strip $?),$(call compile_mib,$?)) +endif ebin/$(PROJECT).app:: $(shell find src -type f -name \*.erl) \ $(shell find src -type f -name \*.core) @@ -269,9 +269,11 @@ ifneq ($(wildcard src/),) ebin/$(PROJECT).app:: @mkdir -p ebin/ +ifneq ($(wildcard mibs/),) ebin/$(PROJECT).app:: $(shell find mibs -type f -name \*.mib) @mkdir -p priv/mibs/ include $(if $(strip $?),$(call compile_mib,$?)) +endif ebin/$(PROJECT).app:: $(shell find src -type f -name \*.erl) \ $(shell find src -type f -name \*.core) |