invidious/lib/radix/Makefile
Leon Klingele 40fb17791e
shard: track dependencies
Commit the whole ./lib/ folder which stores the Crystal dependencies.
This has a few benefits:

- Allows to build the project without a connection to the Internet
  to retrieve dependencies.
- Makes the project resistant against dependency re-tags which might
  include malicious code.
2019-08-15 01:51:27 +02:00

18 lines
471 B
Makefile

CRYSTAL ?= crystal
profile ?= ## Display profiling information after specs execution
verbose ?= ## Run specs in verbose mode
SPEC_FLAGS := $(if $(profile),--profile )$(if $(verbose),--verbose )
.PHONY: default autospec spec
default: spec
# `autospec` task uses `watchexec` external dependency:
# https://github.com/mattgreen/watchexec
autospec:
watchexec --exts cr --watch spec --watch src --clear $(CRYSTAL) spec $(SPEC_FLAGS)
spec:
$(CRYSTAL) spec $(SPEC_FLAGS)