Просмотр исходного кода

Don't try to compile mibs if the mibs/ directory is missing

Loïc Hoguin 10 лет назад
Родитель
Сommit
a02eaa4c8b
2 измененных файлов с 4 добавлено и 0 удалено
  1. 2 0
      core/erlc.mk
  2. 2 0
      erlang.mk

+ 2 - 0
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)

+ 2 - 0
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)