mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
35 lines
619 B
Makefile
35 lines
619 B
Makefile
.POSIX:
|
|
|
|
# Install prefix
|
|
PREFIX = $(HOME)/.cargo
|
|
|
|
# Cargo binary
|
|
CARGO = cargo +nightly
|
|
|
|
SRC = \
|
|
Cargo.toml \
|
|
../../../Cargo.toml \
|
|
$(shell find src -type f) \
|
|
$(shell find ../../../src -type f) \
|
|
|
|
BIN = ../../../genevd
|
|
|
|
all: $(BIN)
|
|
|
|
$(BIN): $(SRC)
|
|
$(CARGO) build $(TARGET_PRFX)$(RUST_TARGET) --release --package genevd
|
|
cp -f ../../../target/$(RUST_TARGET)/release/genevd $@
|
|
|
|
clean:
|
|
rm -f $(BIN)
|
|
|
|
install: all
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
|
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/genevd
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/genevd
|
|
|
|
.PHONY: all clean install uninstall
|