Browse Source

Don't run triq if the dep is missing

Loïc Hoguin 10 years ago
parent
commit
0d1a555a28
2 changed files with 4 additions and 0 deletions
  1. 2 0
      erlang.mk
  2. 2 0
      plugins/triq.mk

+ 2 - 0
erlang.mk

@@ -1241,6 +1241,7 @@ shell: build-shell-deps
 # Copyright (c) 2015, Loïc Hoguin <essen@ninenines.eu>
 # This file is part of erlang.mk and subject to the terms of the ISC License.
 
+ifneq ($(wildcard $(DEPS_DIR)/triq),)
 .PHONY: triq
 
 # Targets.
@@ -1267,3 +1268,4 @@ triq: test-build
 		| sed "s/ebin\//'/;s/\.beam/',/" | sed '$$s/.$$//'))
 	$(gen_verbose) $(call triq_run,[true] =:= lists:usort([triq:check(M) || M <- [$(MODULES)]]))
 endif
+endif

+ 2 - 0
plugins/triq.mk

@@ -1,6 +1,7 @@
 # Copyright (c) 2015, Loïc Hoguin <essen@ninenines.eu>
 # This file is part of erlang.mk and subject to the terms of the ISC License.
 
+ifneq ($(wildcard $(DEPS_DIR)/triq),)
 .PHONY: triq
 
 # Targets.
@@ -27,3 +28,4 @@ triq: test-build
 		| sed "s/ebin\//'/;s/\.beam/',/" | sed '$$s/.$$//'))
 	$(gen_verbose) $(call triq_run,[true] =:= lists:usort([triq:check(M) || M <- [$(MODULES)]]))
 endif
+endif