Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtreece committed Jan 18, 2020
1 parent a058c2c commit 1687fa3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OUT = ./target
VERSION = 0.4.0
VERSION = 0.5.0

WIN := x86_64-pc-windows-gnu
LINUX := armv7-unknown-linux-gnueabihf arm-unknown-linux-gnueabihf x86_64-unknown-linux-gnu
Expand All @@ -9,10 +9,9 @@ CROSS := $(addprefix $(OUT)/, $(addsuffix /release/dlphn, $(ARCH)))

TAR_ARCH := $(LINUX) $(MAC)
TAR := $(addprefix dlphn-$(VERSION)-, $(addsuffix .tar.gz, $(TAR_ARCH)))
ZIP = dlphn-$(VERSION)-$(WIN).zip
ZIP := $(addprefix dlphn-$(VERSION)-, $(addsuffix .zip, $(WIN)))

release: ui $(ZIP) $(TAR)
all: ui $(CROSS)
all: ui $(ZIP) $(TAR)

ui-deps:
@cd ui && yarn
Expand All @@ -36,7 +35,12 @@ $(ZIP): dlphn-$(VERSION)-%.zip: $(CROSS)
$(TAR): dlphn-$(VERSION)-%.tar.gz: $(CROSS)
@tar czvf $@ ./target/$*/release/dlphn

clean:
@cargo clean
@rm dlphn-$(VERSION)-*.zip
@rm dlphn-$(VERSION)-*.tar.gz

bench:
wrk -t20 -c200 -d 30s -s bench/post.lua http://localhost:8080/api/v1/streams/bench/data

.PHONY: bench ui ui-client ui-deps release all
.PHONY: bench ui ui-client ui-deps release all

0 comments on commit 1687fa3

Please sign in to comment.