-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (51 loc) · 1.08 KB
/
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
.PHONY: all build install link lint shell test test-unit package
DOTFILES_UID ?= "$$(id -u)"
DOTFILES_GID ?= "$$(id -g)"
RUN = docker compose run -u "$(DOTFILES_UID):$(DOTFILES_GID)" --rm build
all: test
install: link build
link:
bin/dotfiles install
build:
$(RUN) bin/dotfiles build
lint:
$(RUN) bin/dotfiles lint
shell:
$(RUN) bash
test-unit:
$(RUN) bin/dotfiles unit
test: lint test-unit
package:
$(RUN) bin/dotfiles package
help:
@echo "Manage dotfiles"
@echo ""
@echo "Usage:"
@echo " $$ make [command]"
@echo ""
@echo "Commands:"
@echo ""
@echo " $$ make build"
@echo " Builds dotfiles"
@echo ""
@echo " $$ make install"
@echo " Install dotfiles"
@echo ""
@echo " $$ make link"
@echo " Creates symbolic links"
@echo ""
@echo " $$ make lint"
@echo " Lint code style"
@echo ""
@echo " $$ make shell"
@echo " Login to build container"
@echo ""
@echo " $$ make test"
@echo " Run linter unit tests"
@echo ""
@echo " $$ make test-unit"
@echo " Run unit tests"
@echo ""
@echo " $$ make package"
@echo " Package a distributable archive"
@echo ""