tau: remove Makefile

This commit is contained in:
ghassmo
2022-04-29 15:19:33 +03:00
parent 0ffc5f473f
commit 03be1965ee

View File

@@ -1,37 +0,0 @@
.POSIX:
# Install prefix
PREFIX = ~/.local
# Cargo binary
CARGO = cargo
BINS = taud tau-cli
BINSDIR = ./bin
BINDEPS = \
$(shell find ./taud/src -type f) \
$(shell find ./tau-cli/src -type f) \
$(shell find . -type f -name taud_config.toml)
all: $(BINS)
$(BINS): $(BINDEPS)
mkdir -p $(BINSDIR)
$(CARGO) build --all-features --release --package $@
cp -f ../../target/release/$@ $(BINSDIR)/$@
clean:
rm -f $(BINSDIR)/*
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BINSDIR)/taud $(DESTDIR)$(PREFIX)/bin
cp -f $(BINSDIR)/tau-cli $(DESTDIR)$(PREFIX)/bin/tau
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/tau
rm -f $(DESTDIR)$(PREFIX)/bin/taud
.PHONY: all clean install uninstall