Răsfoiți Sursa

Makefile: Make binaries also depend on arbitrary files that are included.

We usually have these with include_bytes!()
parazyd 4 ani în urmă
părinte
comite
0cc674bf87
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      Makefile

+ 7 - 1
Makefile

@@ -11,9 +11,15 @@ DLTOOL = wget -nv --show-progress -O-
 # Here it's possible to append "cashierd" and "gatewayd".
 BINS = drk darkfid
 
+# Dependencies which should force the binaries to be rebuilt
+BINDEPS = \
+	$(shell find src -type f) \
+	$(shell find token -type f) \
+	$(shell find sql -type f)
+
 all: $(BINS) uid confdir mint.params spend.params
 
-$(BINS): $(shell find src -type f)
+$(BINS): $(BINDEPS)
 	$(CARGO) build --release --all-features --bin $@
 	cp target/release/$@ $@