Skip to content

Commit

Permalink
Makefile: Update for dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
parazyd committed Nov 1, 2021
1 parent 2e3458b commit 4080fa7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.POSIX:

# Install prefix
PREFIX = /usr/local
DLURL = https://testnet.cashier.dark.fi

# Cargo binary
CARGO = cargo
DLTOOL = wget -nv --show-progress -O-
#DLTOOL = curl

# Here it's possible to append "cashierd" and "gatewayd".
BINS = drk darkfid
BINS = drk darkfid cashierd gatewayd

# Dependencies which should force the binaries to be rebuilt
BINDEPS = \
Expand All @@ -17,15 +16,12 @@ BINDEPS = \
$(shell find token -type f) \
$(shell find sql -type f)

all: $(BINS) mint.params spend.params
all: $(BINS)

$(BINS): $(BINDEPS)
$(CARGO) build --release --all-features --bin $@
cp target/release/$@ $@

%.params:
$(DLTOOL) $(DLURL)/$@ > $@

test:
$(CARGO) test --release --all-features

Expand All @@ -44,7 +40,6 @@ install: all
do \
cp -f example/config/$$i.toml $(DESTDIR)$(PREFIX)/share/doc/darkfi; \
done;
cp -f mint.params spend.params $(DESTDIR)$(PREFIX)/share/darkfi

uninstall:
for i in $(BINS); \
Expand All @@ -55,7 +50,7 @@ uninstall:
rm -rf $(DESTDIR)$(PREFIX)/share/darkfi

clean:
rm -f $(BINS) mint.params spend.params
rm -f $(BINS)

distclean: clean
rm -rf target
Expand Down

0 comments on commit 4080fa7

Please sign in to comment.