From 039bf7c92fe6e1af2eb6c72cf2e09e7834d59979 Mon Sep 17 00:00:00 2001 From: Brian Myers Date: Wed, 30 Oct 2019 16:44:32 -0400 Subject: [PATCH] Fix Makefile to work with CARGO_TARGET_DIR --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6bb1fbd6e..44fcaa4a8 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,9 @@ vint: release: cargo build --release - cp -f target/release/languageclient bin/ + [ -z "${CARGO_TARGET_DIR}" ] && \ + cp -f target/release/languageclient bin/ || \ + cp -f ${CARGO_TARGET_DIR}/release/languageclient bin/ chmod a+x bin/languageclient bump-version: