Skip to content

Commit 46dc921

Browse files
committed
Add make install target so it's easy to install deps in all directories
Add `make install` target so it's easy to install dependencies in the main gem and all sub-gems. Change `make bundle-update` to just be `make update` to fit with the new command, and to make the update version easier to run (I can't think of anything else it'd potentially clash with in the future, so I think it's okay to claim the shorter name).
1 parent 44d993d commit 46dc921

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Makefile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
.DEFAULT_GOAL := help
22

3-
.PHONY: bundle-update
4-
bundle-update: ## Run `bundle update` on gem and all subgems
5-
bundle update
6-
cd driver/riverqueue-activerecord && bundle update
7-
cd driver/riverqueue-sequel && bundle update
8-
93
# Looks at comments using ## on targets and uses them to produce a help output.
104
.PHONY: help
115
help: ALIGN=14
126
help: ## Print this message
137
@awk -F ': .*## ' -- "/^[^':]+: .*## /"' { printf "'$$(tput bold)'%-$(ALIGN)s'$$(tput sgr0)' %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
148

9+
.PHONY: install
10+
install: ## Run `bundle install` on gem and all subgems
11+
bundle install
12+
cd driver/riverqueue-activerecord && bundle install
13+
cd driver/riverqueue-sequel && bundle install
14+
1515
.PHONY: lint
1616
lint: standardrb ## Run linter (standardrb) on gem and all subgems
1717

@@ -39,3 +39,9 @@ test: spec ## Run test suite (rspec) on gem and all subgems
3939

4040
.PHONY: type-check
4141
type-check: steep ## Run type check with Steep
42+
43+
.PHONY: update
44+
update: ## Run `bundle update` on gem and all subgems
45+
bundle update
46+
cd driver/riverqueue-activerecord && bundle update
47+
cd driver/riverqueue-sequel && bundle update

0 commit comments

Comments
 (0)