Skip to content

Commit

Permalink
lavinmqperf: break out entities to own files (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun authored Jan 23, 2025
1 parent de1b302 commit 75f2cfd
Show file tree
Hide file tree
Showing 10 changed files with 591 additions and 535 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BINS := bin/lavinmq bin/lavinmqctl bin/lavinmqperf
SOURCES := $(shell find src/lavinmq src/stdlib -name '*.cr' 2> /dev/null)
PERF_SOURCES := $(shell find src/lavinmqperf -name '*.cr' 2> /dev/null)
VIEW_SOURCES := $(wildcard views/*.ecr)
VIEW_TARGETS := $(patsubst views/%.ecr,static/views/%.html,$(VIEW_SOURCES))
VIEW_PARTIALS := $(wildcard views/partials/*.ecr)
Expand Down Expand Up @@ -50,7 +51,7 @@ bin/%: src/%.cr $(SOURCES) lib $(JS) $(DOCS) | bin
bin/%-debug: src/%.cr $(SOURCES) lib $(JS) $(DOCS) | bin
crystal build $< -o $@ --debug $(CRYSTAL_FLAGS)

bin/lavinmqperf: src/lavinmqperf.cr lib | bin
bin/lavinmqperf: src/lavinmqperf.cr $(PERF_SOURCES) lib | bin
crystal build $< -o $@ -Dpreview_mt $(CRYSTAL_FLAGS)

bin/lavinmqctl: src/lavinmqctl.cr lib | bin
Expand Down
Loading

0 comments on commit 75f2cfd

Please sign in to comment.