Browse Source

Fix auto disabling of triq when not in deps

We check the $(DEPS) and $(TEST_DEPS) variables now, instead
of the directory directly, because triq won't be there yet on
first build.
Loïc Hoguin 9 years ago
parent
commit
cf43676f7e
2 changed files with 1 additions and 1 deletions
  1. BIN
      plugins/.triq.mk.swp
  2. 1 1
      plugins/triq.mk

BIN
plugins/.triq.mk.swp


+ 1 - 1
plugins/triq.mk

@@ -1,7 +1,7 @@
 # Copyright (c) 2015, Loïc Hoguin <essen@ninenines.eu>
 # 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.
 # This file is part of erlang.mk and subject to the terms of the ISC License.
 
 
-ifneq ($(wildcard $(DEPS_DIR)/triq),)
+ifeq ($(filter triq,$(DEPS) $(TEST_DEPS)),triq)
 .PHONY: triq
 .PHONY: triq
 
 
 # Targets.
 # Targets.