mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-05-21 00:29:35 +00:00
Update Makefile
This commit is contained in:
parent
fd0452e3cc
commit
96b9f67150
8
Makefile
8
Makefile
@ -15,12 +15,12 @@ endif
|
|||||||
# Configuration for fetching the right binary
|
# Configuration for fetching the right binary
|
||||||
OS ?= "linux"
|
OS ?= "linux"
|
||||||
ARCH ?= "amd64"
|
ARCH ?= "amd64"
|
||||||
VERSION ?= "v0.3.1"
|
VERSION ?= "v0.3.2"
|
||||||
DOWNLOAD_URL := "https://github.com/logos-storage/logos-storage-nim/releases/download/$(VERSION)/libstorage-${OS}-${ARCH}-$(VERSION).zip"
|
DOWNLOAD_URL := "https://github.com/logos-storage/logos-storage-nim/releases/download/$(VERSION)/libstorage-${OS}-${ARCH}-$(VERSION).zip"
|
||||||
|
|
||||||
all: run
|
all: run
|
||||||
|
|
||||||
fetch:
|
fetch:
|
||||||
@echo "Fetching libstorage from GitHub Actions from: ${DOWNLOAD_URL}"
|
@echo "Fetching libstorage from GitHub Actions from: ${DOWNLOAD_URL}"
|
||||||
curl -fSL --create-dirs -o $(LIBS_DIR)/libstorage-${OS}-${ARCH}-$(VERSION).zip ${DOWNLOAD_URL}
|
curl -fSL --create-dirs -o $(LIBS_DIR)/libstorage-${OS}-${ARCH}-$(VERSION).zip ${DOWNLOAD_URL}
|
||||||
unzip -o -qq $(LIBS_DIR)/libstorage-${OS}-${ARCH}-$(VERSION).zip -d $(LIBS_DIR)
|
unzip -o -qq $(LIBS_DIR)/libstorage-${OS}-${ARCH}-$(VERSION).zip -d $(LIBS_DIR)
|
||||||
@ -38,4 +38,4 @@ endif
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN_NAME)
|
rm -f $(BIN_NAME)
|
||||||
rm -Rf $(LIBS_DIR)/*
|
rm -Rf $(LIBS_DIR)/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user