From a02eaa4c8b26fdbdaf7b152b98aa3cb66c8c253f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 19 Nov 2014 12:27:34 +0200 Subject: Don't try to compile mibs if the mibs/ directory is missing --- core/erlc.mk | 2 ++ erlang.mk | 2 ++ 2 files changed, 4 insertions(+) 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) diff --git a/erlang.mk b/erlang.mk index afa2643..9973d3c 100644 --- a/erlang.mk +++ b/erlang.mk @@ -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) -- cgit v1.2.3