-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7abec6c
commit b69a6d7
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
PROJECTS = $(shell find * -maxdepth 0 -type d) | ||
gemfiles = $(shell find . -name Gemfile -maxdepth 5 | sort) | ||
lockfiles = $(foreach gemfile,$(gemfiles),$(gemfile).lock) | ||
|
||
logs: | ||
aws logs tail --follow $(shell aws logs describe-log-groups | jq -r '.logGroups[].logGroupName' | grep brutalismbot | fzf --no-info --reverse --sync --height 10%) | ||
.PHONY: build clean logs | ||
|
||
build: $(lockfiles) | ||
|
||
$(PROJECTS): | ||
make -C $@ apply | ||
clean: | ||
find . -type d -name vendor | xargs rm -rf | ||
|
||
.PHONY: logs $(PROJECTS) | ||
$(lockfiles): %.lock: % .ruby-version | ||
BUNDLE_APP_CONFIG=$(PWD)/.bundle bundle install --gemfile $< | ||
|
||
logs: | ||
aws logs tail --follow $(shell aws logs describe-log-groups | jq -r '.logGroups[].logGroupName' | grep brutalismbot | fzf --no-info --reverse --sync --height 10%) |