aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-06-24 18:29:44 +0200
committerLoïc Hoguin <[email protected]>2019-06-24 18:29:44 +0200
commit0584ecaa55a4fe77c9768a5718ae69ec44d1f999 (patch)
tree92ce23e8968d1317ac8c99205823f1a89ac075eb
parent87cba237455ca87324037c6c92495ec6a8c6a3f9 (diff)
downloaderlang.mk-0584ecaa55a4fe77c9768a5718ae69ec44d1f999.tar.gz
erlang.mk-0584ecaa55a4fe77c9768a5718ae69ec44d1f999.tar.bz2
erlang.mk-0584ecaa55a4fe77c9768a5718ae69ec44d1f999.zip
Fix the force_rebuilding_dep test
-rw-r--r--core/deps.mk2
-rw-r--r--test/core_deps.mk4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/deps.mk b/core/deps.mk
index cdcf31f..2ecb0d2 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -130,7 +130,7 @@ ifneq ($(ALL_DEPS_DIRS),)
:; \
else \
echo $$dep >> $(ERLANG_MK_TMP)/deps.log; \
- if [ -z "$(strip $(FULL))" ] $(if $(force_rebuilding_dep),&& ($(call force_rebuilding_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
+ if [ -z "$(strip $(FULL))" ] $(if $(force_rebuilding_dep),&& ! ($(call force_rebuilding_dep,$$dep)),) && [ ! -L $$dep ] && [ -f $$dep/ebin/dep_built ]; then \
:; \
elif [ -f $$dep/GNUmakefile ] || [ -f $$dep/makefile ] || [ -f $$dep/Makefile ]; then \
$(MAKE) -C $$dep IS_DEP=1; \
diff --git a/test/core_deps.mk b/test/core_deps.mk
index fd322fe..2736bc3 100644
--- a/test/core_deps.mk
+++ b/test/core_deps.mk
@@ -194,7 +194,7 @@ core-deps-dep-built-force-full: init
$i "Check that cowlib is not rebuilt if \`force_rebuilding_dep\` returns false"
$t touch $(APP)/EXPECT
$t $(SLEEP)
- $t $(MAKE) -C $(APP) force_rebuilding_dep='test $$(1) != $(APP)/deps/cowlib' $v
+ $t $(MAKE) -C $(APP) force_rebuilding_dep='test $$(1) != $(CURDIR)/$(APP)/deps/cowlib' $v
$t find $(APP)/deps/cowlib -type f -newer $(APP)/EXPECT | sort | diff $(APP)/EXPECT -
$t rm $(APP)/EXPECT
@@ -205,7 +205,7 @@ core-deps-dep-built-force-full: init
$(APP)/deps/cowlib/ebin/cow_http.beam \
$(APP)/deps/cowlib/ebin/dep_built | sort > $(APP)/EXPECT
$t $(SLEEP)
- $t $(MAKE) -C $(APP) force_rebuilding_dep='test $$(1) = $(APP)/deps/cowlib' $v
+ $t $(MAKE) -C $(APP) force_rebuilding_dep='test $$(1) = $(CURDIR)/$(APP)/deps/cowlib' $v
# Files in .git might end up modified due to the id generation in the .app file.
$t find $(APP)/deps/cowlib -type f -newer $(APP)/EXPECT | grep -v ".git" | sort | diff $(APP)/EXPECT -
$t rm $(APP)/EXPECT