-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 843 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 843 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
# refs
# - https://opensource.com/article/18/8/what-how-makefile
# - https://maex.me/2018/02/dont-fear-the-makefile/
# - http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/
# targets without immediate file dependencies
.PHONY: check help install run shellcheck shfmt
.DEFAULT_GOAL := help
help:
@echo 'make help'
@echo ' show this help message'
@echo 'make install'
@echo ' set up dependencies'
@echo 'make run'
@echo ' run local `./totes` executable'
@echo 'make check'
@echo ' run shellcheck & shfmt'
@echo 'make shfmt'
@echo ' run shfmt'
@echo 'make shellcheck'
@echo ' run shellcheck'
install: .install # user-friendly alias to .install
.install: install.sh
./install.sh
touch .install
run: .install
./totes
check: shellcheck shfmt
shellcheck:
./infra/actions/shellcheck
shfmt:
./infra/actions/shfmt