-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
30 lines (22 loc) · 886 Bytes
/
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
XCODE_USER_TEMPLATES_DIR=~/Library/Developer/Xcode/Templates/File\ Templates
XCODE_USER_SNIPPETS_DIR=~/Library/Developer/Xcode/UserData/CodeSnippets
SNIPPETS_PREFIX=Clean\ Swift
TEMPLATES_DIR=Clean\ Swift
SNIPPETS_DIR=Snippets
install:install_templates install_snippets
@echo "Install Done"
@echo "Restart Xcode to see changes!"
install_snippets:
@mkdir -p $(XCODE_USER_SNIPPETS_DIR)
@rm -fR $(XCODE_USER_SNIPPETS_DIR)/$(SNIPPETS_PREFIX)
@cp $(SNIPPETS_DIR)/* $(XCODE_USER_SNIPPETS_DIR)
install_templates:
mkdir -p $(XCODE_USER_TEMPLATES_DIR)
rm -fR $(XCODE_USER_TEMPLATES_DIR)/$(TEMPLATES_DIR)
cp -R $(TEMPLATES_DIR) $(XCODE_USER_TEMPLATES_DIR)
uninstall: uninstall_templates uninstall_snippets
@echo "Uninstall Done"
uninstall_snippets:
@rm -fR $(XCODE_USER_SNIPPETS_DIR)/$(SNIPPETS_PREFIX)
uninstall_templates:
rm -fR $(XCODE_USER_TEMPLATES_DIR)/$(TEMPLATES_DIR)