Browse Source

updated Makefile to work with workspaces

lunar-mining 4 years ago
parent
commit
85b531511d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -7,7 +7,7 @@ PREFIX = /usr/local
 CARGO = cargo
 CARGO = cargo
 
 
 # Binaries to be built
 # Binaries to be built
-BINS = drk darkfid gatewayd
+BINS = drk darkfid gatewayd 
 
 
 # Dependencies which should force the binaries to be rebuilt
 # Dependencies which should force the binaries to be rebuilt
 BINDEPS = \
 BINDEPS = \
@@ -19,7 +19,7 @@ BINDEPS = \
 all: $(BINS)
 all: $(BINS)
 
 
 $(BINS): $(BINDEPS)
 $(BINS): $(BINDEPS)
-	$(CARGO) build --release --all-features --bin $@
+	$(CARGO) build --workspace --release --all-features
 	cp -f target/release/$@ $@
 	cp -f target/release/$@ $@
 
 
 test:
 test: