-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.55 KB
/
Makefile
File metadata and controls
53 lines (39 loc) · 1.55 KB
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
46
47
48
49
50
51
52
53
git=git
brew=brew
TEST_HOMEBREW_TAP?=aws/homebrew-aws-next
export HOMEBREW_PREFIX=$(shell $(brew) --prefix)
export HOMEBREW_COLOR?=1
export HOMEBREW_NO_COLOR?=
export HOMEBREW_NO_EMOJI?=1
export HOMEBREW_SIMULATE_MACOS_ON_LINUX?=1
export HOMEBREW_VERBOSE?=
export HOMEBREW_DEBUG?=
export HOMEBREW_DEVELOPER=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ENV_HINTS=1
export HOMEBREW_BOOTSNAP=0
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_VERIFY_ATTESTATIONS=1
export HOMEBREW_DISPLAY_INSTALL_TIMES=1
LOCAL_CACHE_DIR=$(abspath ./test-cache)
export HOMEBREW_CACHE=$(abspath $(LOCAL_CACHE_DIR)/homebrew-cache)
export HOMEBREW_BUNDLE_USER_CACHE=$(abspath $(LOCAL_CACHE_DIR)/bundle-user-cache)
.default: check-style
dev-setup: test-tap test-cache
test-tap:
@-echo "(re)initialize tap worktree" >&2; sleep 1;
-$(git) worktree remove $(GIT_FORCE) $(HOMEBREW_PREFIX)/Library/Taps/$(TEST_HOMEBREW_TAP)
$(git) worktree add $(HOMEBREW_PREFIX)/Library/Taps/$(TEST_HOMEBREW_TAP) HEAD
test-cache: $(LOCAL_CACHE_DIR)
$(LOCAL_CACHE_DIR):
mkdir $(LOCAL_CACHE_DIR) $(HOMEBREW_CACHE) $(HOMEBREW_BUNDLE_USER_CACHE)
check: check-style check-audit
fmt format:
$(brew) style --except-cops Cask/Desc --fix .
check-style:
$(brew) style --except-cops Cask/Desc .
check-audit:
$(brew) audit --skip-style --except=version --signing --os=all --arch=all --display-filename --tap=$(TEST_HOMEBREW_TAP)
check-audit-slow: HOMEBREW_VERBOSE=1
check-audit-slow:
$(brew) audit --skip-style --except=version --signing --os=all --arch=all --display-filename --online --tap=$(TEST_HOMEBREW_TAP)