-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
38 lines (31 loc) · 1.41 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
brew_install_file_name = "brew_install.md"
vscode_install_extension_file_name = "vscode_install_extension.md"
.PHONY: brew vscode list install uninstall clean
brew:
@echo "latest update:" > ${brew_install_file_name}
@date "+%Y/%-m/%-d-%-H:%M:%S" >> $(brew_install_file_name)
@echo " " >> ${brew_install_file_name}
@echo "hostname:" >> ${brew_install_file_name}
@hostname >> $(brew_install_file_name)
@echo " " >> ${brew_install_file_name}
@echo "brew install " >> ${brew_install_file_name}
@brew list --installed-on-request >> ${brew_install_file_name}
@echo " " >> ${brew_install_file_name}
@echo "brew install --cask" >> ${brew_install_file_name}
@brew list --cask >> ${brew_install_file_name}
vscode:
@echo "latest update:" > ${vscode_install_extension_file_name}
@date "+%Y/%-m/%-d-%-H:%M:%S" >> $(vscode_install_extension_file_name)
@echo " " >> ${vscode_install_extension_file_name}
@echo "hostname:" >> ${vscode_install_extension_file_name}
@hostname >> $(vscode_install_extension_file_name)
@echo " " >> ${vscode_install_extension_file_name}
@code --list-extensions | awk '{print "code --force --install-extension";print $0; print " "}' >> ${vscode_install_extension_file_name}
list: brew vscode
@echo "Backup Homebrew install list and VSCode extension list."
install:
@python3 config.py --install
uninstall:
@python3 config.py --uninstall
clean:
@find . -name ".DS_Store" -type f -exec /bin/rm -f {} +