|
@@ -7,7 +7,7 @@ PREFIX = /usr/local
|
|
|
CARGO = cargo
|
|
CARGO = cargo
|
|
|
|
|
|
|
|
# Here it's possible to append "cashierd" and "gatewayd".
|
|
# Here it's possible to append "cashierd" and "gatewayd".
|
|
|
-BINS = drk darkfid cashierd gatewayd
|
|
|
|
|
|
|
+BINS = drk darkfid
|
|
|
|
|
|
|
|
# Dependencies which should force the binaries to be rebuilt
|
|
# Dependencies which should force the binaries to be rebuilt
|
|
|
BINDEPS = \
|
|
BINDEPS = \
|
|
@@ -16,22 +16,20 @@ BINDEPS = \
|
|
|
$(shell find token -type f) \
|
|
$(shell find token -type f) \
|
|
|
$(shell find sql -type f)
|
|
$(shell find sql -type f)
|
|
|
|
|
|
|
|
-#all: $(BINS)
|
|
|
|
|
-all:
|
|
|
|
|
- cargo build --release --all-features --lib
|
|
|
|
|
|
|
+all: $(BINS)
|
|
|
|
|
|
|
|
$(BINS): $(BINDEPS)
|
|
$(BINS): $(BINDEPS)
|
|
|
$(CARGO) build --release --all-features --bin $@
|
|
$(CARGO) build --release --all-features --bin $@
|
|
|
- cp target/release/$@ $@
|
|
|
|
|
|
|
+ cp -f target/release/$@ $@
|
|
|
|
|
|
|
|
test:
|
|
test:
|
|
|
- $(CARGO) test --release --all-features --lib
|
|
|
|
|
|
|
+ $(CARGO) test --release --all-features
|
|
|
|
|
|
|
|
fix:
|
|
fix:
|
|
|
$(CARGO) fix --release --all-features --allow-dirty
|
|
$(CARGO) fix --release --all-features --allow-dirty
|
|
|
|
|
|
|
|
clippy:
|
|
clippy:
|
|
|
- $(CARGO) clippy --release --all-features --lib
|
|
|
|
|
|
|
+ $(CARGO) clippy --release --all-features
|
|
|
|
|
|
|
|
install: all
|
|
install: all
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|