-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (55 loc) · 1015 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# https://stackoverflow.com/a/23324703
SCRIPTS = $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))/scripts
.PHONY: all
# .SILENT: all
all:
$(MAKE) sync NO_GIT_INFO=1
$(MAKE) import NO_GIT_INFO=1
$(MAKE) status
$(MAKE) diff
.PHONY: sync
.SILENT: sync
sync:
$(SCRIPTS)/sync.zsh
ifeq ($(NO_GIT_INFO),)
$(MAKE) status
$(MAKE) diff
endif
.PHONY: import
.SILENT: import
import:
$(SCRIPTS)/import.zsh
ifeq ($(NO_GIT_INFO),)
$(MAKE) status
$(MAKE) diff
endif
.PHONY: status
.SILENT: status
status:
$(SCRIPTS)/status.sh
.PHONY: diff
.SILENT: diff
diff:
$(SCRIPTS)/diff.sh
.PHONY: tree
.SILENT: tree
tree:
tree \
-a \
-I '.git|.gitignore|.idea|Makefile|README.md|img|import.zsh|util'
.PHONY: gitleaks
.SILENT: gitleaks
gitleaks:
docker run \
--rm \
--name gitleaks \
--env RUN_LOCAL=true \
--volume $(shell pwd -P):/tmp \
zricethezav/gitleaks:latest \
--source="/tmp" \
--verbose \
--redact \
detect
.PHONY: submodules
submodules:
git submodule update --init --recursive