2017-05-30 02:13:03 +00:00
|
|
|
POLARIS_BIN_DIR := ~/.local/bin/polaris
|
|
|
|
POLARIS_CONFIG_DIR := ~/.config/polaris
|
|
|
|
POLARIS_DATA_DIR := ~/.local/share/polaris
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
install: build
|
|
|
|
install -d $(POLARIS_BIN_DIR)
|
|
|
|
install -d $(POLARIS_CONFIG_DIR)
|
|
|
|
install -d $(POLARIS_DATA_DIR)
|
|
|
|
install ./target/release/polaris $(POLARIS_BIN_DIR)
|
|
|
|
cp -r ./web $(POLARIS_DATA_DIR)
|
2017-05-31 05:36:00 +00:00
|
|
|
@echo "Polaris installation complete!"
|
2017-05-30 02:13:03 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
cargo clean
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -r $(POLARIS_BIN_DIR)
|
|
|
|
rm -r $(POLARIS_CONFIG_DIR)
|
|
|
|
rm -r $(POLARIS_DATA_DIR)
|