-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (29 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SHELL := /bin/bash
BUNDLE_CHECK := $(shell bundle check >/dev/null ; echo $$?)
all: setup test lint
setup: setup-overcommit
test: specs
specs: rspec verify-specs
console: bundle
bundle exec pry -I src -r stone/cli
lint: markdownlint rubocop
verify-specs: bundle
STONE_PRELUDE='docs/specs/prelude.stone' bin/stone verify --debug docs/specs/*.md
rspec: bundle
bundle exec rspec
setup-overcommit: .git/hooks/overcommit-hook
bundle:
ifneq ($(BUNDLE_CHECK), 0)
bundle
endif
Gemfile.lock: Gemfile
bundle
.git/hooks/overcommit-hook: .overcommit.yml
bundle exec overcommit --install
bundle exec overcommit --sign
bundle exec overcommit --sign pre-commit
rubocop:
bundle exec rubocop .
markdownlint:
markdownlint *.md docs
.PHONY: all setup test specs console lint verify-specs rspec setup-overcommit bundle rubocop markdownlint