瀏覽代碼

Makefile: Rebuild binaries on source code changes.

parazyd 4 年之前
父節點
當前提交
a597b4bd18
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      Makefile

+ 2 - 4
Makefile

@@ -9,13 +9,11 @@ DLTOOL = wget -nv --show-progress -O-
 #DLTOOL = curl
 
 # Here it's possible to append "cashierd" and "gatewayd".
-BINS = \
-	drk \
-	darkfid
+BINS = drk darkfid
 
 all: $(BINS) uid confdir mint.params spend.params
 
-$(BINS):
+$(BINS): $(shell find src -type f)
 	$(CARGO) build --release --all-features --bin $@
 	cp target/release/$@ $@