-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathMakefile
55 lines (40 loc) · 1.16 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
CHECK=\033[32m✔\033[39m
DONE="${CHECK} DONE."
all: install
install: init-submodules install-js2mode install-go-tools install-helm
@mkdir libs/color-theme/themes
@echo $(DONE)
install-js2mode:
@echo "Installing js2-mode"
@mkdir -p libs/js2-mode-compiled
@cd libs/js2-mode && make && mv *.elc ../js2-mode-compiled/.
@cp libs/js2-mode/js2-old-indent.el libs/js2-mode-compiled/.
install-magit:
@echo "Installing magit"
@cd libs/magit && make
install-helm:
@cd libs/helm && make
install-go-tools:
@go get github.com/rogpeppe/godef
@go get -u github.com/nsf/gocode
init-submodules:
@echo "Initializing submodules"
@git submodule init && git submodule update && git submodule status
override:
ln -s ~/emacs/init.el ~/.emacs
new-submodule:
@echo "Creating new submodule '${name}' from ${git}"
@git submodule add --force ${git} libs/${name}
@echo $(DONE)
update: update-repo init-submodules update-submodules
update-repo:
git pull origin master
@echo $(DONE)
update-submodules:
@echo "Updating submodules"
@git submodule foreach "(git checkout master; git pull)&"
@echo $(DONE)
clean: clean-js2mode
clean-js2mode:
@rm -rf libs/js2-mode-compiled
.PHONY: clean