aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-03-06 18:45:26 +0100
committerLoïc Hoguin <[email protected]>2019-03-06 18:50:15 +0100
commit4901e4da63cf061b57d66c39645797179c2ba179 (patch)
treeb1dac96ab3e7ef9616e21c7393b377681a7e3e53
parentf317200563bf3b7547cbca6b825fd6bee50a6528 (diff)
downloadasciideck-4901e4da63cf061b57d66c39645797179c2ba179.tar.gz
asciideck-4901e4da63cf061b57d66c39645797179c2ba179.tar.bz2
asciideck-4901e4da63cf061b57d66c39645797179c2ba179.zip
Use mklink on Windows for the groff tests
This fixes errors due to long paths I get in BuildKite.
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c6fca92..75ea82a 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,12 @@ $(ERLANG_MK_TMP)/groff/$1: | $(ERLANG_MK_TMP)/groff
$(verbose) rm -rf $$@
$(verbose) git clone -q --depth 1 -- $(call dep_repo,$1) $$@
$(verbose) mkdir $$@/deps
+ifeq ($(PLATFORM),msys2)
+ $(verbose) cmd //c mklink $(call core_native_path,$(ERLANG_MK_TMP)/groff/$1/deps/asciideck) \
+ $(call core_native_path,$(CURDIR))
+else
$(verbose) ln -s $(CURDIR) $$@/deps/asciideck
+endif
$(verbose) touch $$@/deps/ci.erlang.mk
$(verbose) cp $(CURDIR)/erlang.mk $$@/