-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (55 loc) ยท 2.17 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
generate:
make templates_delete
make templates
make clean
make download
tuist install
tuist generate
release:
make clean
make download
tuist install
TUIST_DEVELOPMENT_TEAM=$(DEVELOPMENT_TEAM) tuist generate
test:
make clean
make download
tuist install
tuist cache
TUIST_DEVELOPMENT_TEAM=$(DEVELOPMENT_TEAM) tuist generate App
clean:
tuist clean
rm -rf **/*.xcodeproj
rm -rf *.xcworkspace
download:
make download-privates
INSTALL_DIR := $(HOME)/Library/Developer/Xcode/Templates/File\ Templates/Pokit_TCA.xctemplate
FILES := templates/Pokit_TCA.xctemplate/___FILEBASENAME___Feature.swift \
templates/Pokit_TCA.xctemplate/___FILEBASENAME___View.swift \
templates/Pokit_TCA.xctemplate/TemplateIcon.png \
templates/Pokit_TCA.xctemplate/TemplateInfo.plist
templates: $(FILES)
@echo "๐ Template file ์ค์น ์ค"
@mkdir -p $(INSTALL_DIR)
@cp -r $(FILES) $(INSTALL_DIR)
templates_delete:
@echo "๐ ์ค์น๋์ด ์๋ Pokit Template file์ ์ฐ์ ์ญ์ ํฉ๋๋ค."
@rm -rf $(INSTALL_DIR)
.PHONY: templates generate clean download download-privates
# 2) Private repository๋ก๋ถํฐ ํ์ผ ๋ค์ด๋ก๋
download-privates:
@echo "๐คซ Private repository์์ ํ์ผ์ ๋ค์ด๋ก๋ ํฉ๋๋ค."
@if [ ! -d "Pokit_iOS_Private" ]; then \
git clone [email protected]:stealmh/Pokit_iOS_Private.git; \
fi
@if [ -f "Pokit_iOS_Private/xcconfig/Debug.xcconfig" ] && [ -f "Pokit_iOS_Private/xcconfig/Release.xcconfig" ]; then \
mkdir -p xcconfig; \
cp Pokit_iOS_Private/xcconfig/Debug.xcconfig xcconfig/Debug.xcconfig; \
cp Pokit_iOS_Private/xcconfig/Release.xcconfig xcconfig/Release.xcconfig; \
cp Pokit_iOS_Private/auth/AuthKey.p8 Projects/CoreKit/Resources/AuthKey.p8; \
cp Pokit_iOS_Private/GoogleService-Info.plist Projects/App/Resources/GoogleService-Info.plist; \
cp Pokit_iOS_Private/GoogleService-Info.plist Projects/App/ShareExtension/Resources/GoogleService-Info.plist; \
rm -rf Pokit_iOS_Private; \
echo "โ
Debug.xcconfig์ Release.xcconfig ํ์ผ์ ์ฑ๊ณต์ ์ผ๋ก ๋ค์ด๋ก๋ํ๊ณ Pokit_iOS_Private ํด๋๋ฅผ ์ญ์ ํ์ต๋๋ค."; \
else \
echo "โ Debug.xcconfig ๋๋ Release.xcconfig ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค." && exit 1; \
fi