-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 778 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 778 Bytes
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
EXECS_ESSENTIAL = sort uniq jq youtube-dl
EXECS_OPTIONAL = fzf ueberzug
EXECS_TESTING = zunit
SHELL:=/bin/zsh
.PHONY: check-essential-execs
check-essential-execs:
$(foreach exec, $(EXECS_ESSENTIAL),\
$(if $(shell which $(exec)),\
,\
$(error "No $(exec) in PATH")))
.PHONY: check-user-execs
check-user-execs: check-essential-execs
$(foreach exec, $(EXECS_OPTIONAL),\
$(if $(shell which $(exec)),\
,\
$(error "No $(exec) in PATH")))
.PHONY: check-testing-execs
check-testing-execs: check-essential-execs
$(foreach exec, $(EXECS_TESTING),\
$(if $(shell which $(exec)),\
,\
$(error "No $(exec) in PATH")))
.PHONY: check-all-execs
check-all-execs: check-user-execs check-testing-execs
.PHONY: test
test:
unbuffer zunit run --verbose </dev/null