-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
81 lines (65 loc) · 2.29 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
include common/Makefile.common
topdir := $(shell pwd)
DOCKER_NAME := finaldie/dev
all: prepare install bash zsh notes
prepare:
@test -d $(USER_ENV) || mkdir $(USER_ENV);
@cd zsh && make prepare topdir=$(topdir) --no-print-directory;
@cd bash && make prepare topdir=$(topdir) --no-print-directory;
install:
@for module in $(MODULES); \
do \
echo "[$$module] Installing..."; \
$(MAKE) -s -C $$module topdir=$(topdir); \
done;
bash:
@echo "[bash] Installing...";
@cd bash && make topdir=$(topdir) --no-print-directory
zsh:
@echo "[zsh] Installing...";
@cd zsh && make topdir=$(topdir) --no-print-directory
notes:
@echo ""
@echo "* =========================================================== *";
@echo "* Install Complete, Please Read The Following Notes *";
@echo "* =========================================================== *";
@echo "";
@cd bash && make topdir=$(topdir) notes --no-print-directory
@cd zsh && make topdir=$(topdir) notes --no-print-directory
@for module in $(MODULES); \
do \
$(MAKE) -s -C $$module topdir=$(topdir) notes; \
done;
@echo "* =========================================================== *";
@echo "* LAST NOTE *";
@echo "* =========================================================== *";
@echo "1 | Install commands tools to make the life eaiser"
@echo "2 | Recommended tools: fzf, plantuml"
@echo ""
@echo "Have fun :)"
@echo ""
dist-update:
@echo "[dist upgrading]..."
@git submodule update --init --recursive
@cd vim/vim/vim-plug && git checkout master && git pull
@cd zsh/theme/powerlevel10k && git checkout master && git pull
@cd zsh/plugin/zsh-syntax-highlighting && git checkout master && git pull
@cd zsh/plugin/zsh-autosuggestions && git checkout master && git pull
@cd tools/fzf && git checkout master && git pull
@cd tools/tmuxinator && git checkout master && git pull
clang-prebuilt:
$(MAKE) -C docker clang7
plantuml:
$(MAKE) -C docker plantuml
docker_deps:
$(MAKE) -C docker docker-deps
docker: clang-prebuilt plantuml
@docker build --rm -t $(DOCKER_NAME) -f ./docker/Dockerfile .
clean:
@for module in $(MODULES); \
do \
echo "[$$module] Clean..."; \
$(MAKE) -s -C $$module topdir=$(topdir) clean; \
done;
@rm -rf $(USER_ENV)
.PHONY: all clean install bash zsh docker