-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (36 loc) 路 1.53 KB
/
Copy pathMakefile
File metadata and controls
41 lines (36 loc) 路 1.53 KB
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
provision: ## Environment setup
@git config commit.template .gitcommit
@brew config && brew update
@brew bundle
@$(MAKE) generate-placeholder-plist-files
provision-ci: ## CI environment setup
@brew install "xcodegen"
@$(MAKE) generate-placeholder-plist-files
sync: ## xproj file generation
@echo 馃煛 Running xcodegen
@cd Core; xcodegen
@cd Horizon; xcodegen
@cd Student; xcodegen
@cd Teacher; xcodegen
@cd Parent; xcodegen
sync-ci: ## CI specific xproj file generation
@echo 馃煛 Running xcodegen
@cd Core; xcodegen
@cd Horizon; xcodegen
@cd Student; xcodegen --spec "project-ci.yml"
@cd Teacher; xcodegen --spec "project-ci.yml"
@cd Parent; xcodegen --spec "project-ci.yml"
generate-placeholder-plist-files:
@$(MAKE) generate-placeholder-plist-file PLIST_PATH=./Student/Student/GoogleService-Info.plist
@$(MAKE) generate-placeholder-plist-file PLIST_PATH=./Student/SubmitAssignment/GoogleService-Info.plist
@$(MAKE) generate-placeholder-plist-file PLIST_PATH=./Student/Widgets/GoogleService-Info.plist
@$(MAKE) generate-placeholder-plist-file PLIST_PATH=./Teacher/Teacher/GoogleService-Info.plist
@$(MAKE) generate-placeholder-plist-file PLIST_PATH=./Parent/Parent/GoogleService-Info.plist
generate-placeholder-plist-file:
@echo "Generating empty GoogleService-Info.plist file at: $${PLIST_PATH}"
@printf '%s\n' \
'<?xml version="1.0" encoding="UTF-8"?>' \
'<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">' \
'<plist version="1.0">' \
'<dict/>' \
'</plist>' > "$${PLIST_PATH}"