xppl/Makefile

19 lines
574 B
Makefile
Raw Normal View History

RQLITE_DIR := rqlite
RQLITE_TAR := rqlite-v4.3.0-linux-amd64.tar.gz
RQLITE_UNTAR := rqlite-v4.3.0-linux-amd64
RQLITE_URL := https://github.com/rqlite/rqlite/releases/download/v4.3.0/rqlite-v4.3.0-linux-amd64.tar.gz
install-rqlite:
@mkdir -p $(RQLITE_DIR)
@sudo apt update && sudo apt install -y curl
@curl -L $(RQLITE_URL) -o $(RQLITE_DIR)/$(RQLITE_TAR)
@tar xvfz $(RQLITE_DIR)/$(RQLITE_TAR) -C $(RQLITE_DIR)
rqlited:
@./$(RQLITE_DIR)/$(RQLITE_UNTAR)/rqlited $(RQLITE_DIR)/node.1
.PHONY: rqlited
rqlite:
@./$(RQLITE_DIR)/$(RQLITE_UNTAR)/rqlite
.PHONY: rqlite