From 0d1a555a287f0d1c91c3880e18570e0b5d5d8a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 6 Mar 2015 19:05:32 +0100 Subject: Don't run triq if the dep is missing --- erlang.mk | 2 ++ plugins/triq.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/erlang.mk b/erlang.mk index 5311303..a0cf657 100644 --- a/erlang.mk +++ b/erlang.mk @@ -1241,6 +1241,7 @@ shell: build-shell-deps # Copyright (c) 2015, Loïc Hoguin # 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 diff --git a/plugins/triq.mk b/plugins/triq.mk index 8a77c91..2edfdba 100644 --- a/plugins/triq.mk +++ b/plugins/triq.mk @@ -1,6 +1,7 @@ # Copyright (c) 2015, Loïc Hoguin # 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 -- cgit v1.2.3