mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-24 07:43:08 +00:00
properly export NIMBLE_DIR in Makefile
This commit is contained in:
parent
9e41189abf
commit
dc30c6d8f0
10
Makefile
10
Makefile
@ -75,12 +75,18 @@ clean:
|
||||
build:
|
||||
mkdir -p build
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
NIMBLE_DIR ?= $(USERPROFILE)/.nimble
|
||||
else
|
||||
NIMBLE_DIR ?= $(HOME)/.nimble
|
||||
endif
|
||||
export NIMBLE_DIR
|
||||
|
||||
nimble:
|
||||
echo "Inside nimble target, checking for nimble..." && \
|
||||
which nimble >/dev/null 2>&1 || { \
|
||||
command -v nimble >/dev/null 2>&1 || { \
|
||||
mv nimbledeps nimbledeps_backup 2>/dev/null || true; \
|
||||
echo "choosenim not found, installing into $(NIMBLE_DIR)..."; \
|
||||
export NIMBLE_DIR="$(NIMBLE_DIR)"; \
|
||||
curl -sSf https://nim-lang.org/choosenim/init.sh | sh; \
|
||||
mv nimbledeps_backup nimbledeps 2>/dev/null || true; \
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user