Skip to content

Commit 886d5f4

Browse files
Merge pull request #71 from AdvH039/install-ie-released-version
use official released version of ie
2 parents 7b2467e + 6e65530 commit 886d5f4

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

ie.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
IE_VERSION ?= 40e125e61516ab401084da65eed36095b2b3850a
21
INSTALLATION_DIR ?= ~/.local/bin
2+
RELEASE ?= latest
33

44
# Install innovation engine
55
.PHONY: install-ie
66
install-ie:
7-
DIR=$$(mktemp -d) && \
8-
cd $$DIR && \
9-
git clone https://github.com/Azure/InnovationEngine.git && \
10-
cd InnovationEngine && \
11-
git checkout $(IE_VERSION) && \
12-
make build-ie && \
13-
mkdir -p $(INSTALLATION_DIR) && \
14-
cp bin/ie $(INSTALLATION_DIR) && \
15-
rm -rf $$DIR
7+
wget -q -O ie https://github.com/Azure/InnovationEngine/releases/download/$(RELEASE)/ie >/dev/null
8+
chmod +x ie >/dev/null
9+
mkdir -p $(INSTALLATION_DIR) >/dev/null
10+
mv ie $(INSTALLATION_DIR) >/dev/null
11+
if ! echo "$$PATH" | grep -q "$(INSTALLATION_DIR)"; then \
12+
export PATH="$$PATH:$(INSTALLATION_DIR)"; \
13+
fi;>/dev/null \
1614

1715
# Uninstall innovation engine
1816
.PHONY: uninstall-ie

0 commit comments

Comments
 (0)