-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (53 loc) · 1.88 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
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/Secret.xcconfig" ]; then \
mkdir -p xcconfig; \
cp Pokit_iOS_Private/xcconfig/Secret.xcconfig xcconfig/Secret.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; \
rm -rf Pokit_iOS_Private; \
echo "✅ Secret 파일을 성공적으로 다운로드하고 Pokit_iOS_Private 폴더를 삭제했습니다."; \
else \
echo "❌ Secret.xcconfig 파일을 찾을 수 없습니다."; \
fi