-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (49 loc) · 1.59 KB
/
Makefile
File metadata and controls
60 lines (49 loc) · 1.59 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
MINT_VERSION = 0.16.0
PRODUCT_NAME := HiDiary
PROJECT_NAME := ${PRODUCT_NAME}.xcodeproj
.DEFAULT_GOAL := help
.PHONY: setup-mint
setup-mint: # setup Mint package dependencies.
rm -rf Mint/
git clone https://github.com/yonaskolb/Mint.git -b ${MINT_VERSION}
cd Mint && make
rm -rf Mint/
#bootstrap: Mintfileを用意してインストールしたツールを管理できる
mint bootstrap --overwrite y
.PHONY: xcodegen
xcodegen: # Run xcodegen in this project
mint run xcodegen
.PHONY: mint
mint:
git clone https://github.com/yonaskolb/Mint.git -b $(MINT_VERSION)
cd Mint && make
rm -rf Mint/
.PHONY: ccache
ccache:
xcodebuild -alltargets clean ; rm -rf ~/Library/Developer/Xcode/DerivedData/ ; :
.PHONY: sort
sort: # Sort Project file and folder.
curl -sS https://raw.githubusercontent.com/WebKit/webkit/master/Tools/Scripts/sort-Xcode-project-file \
> ./script.pl \
&& perl ./script.pl `find . -maxdepth 1 -mindepth 1 -iname "*.xcodeproj"` \
&& rm -f ./script.pl
.PHONY: open
open: # open Xcode Projects.
open ./${PROJECT_NAME}
.PHONY: clean
clean: # Delete cache
rm -rf ./Pods
rm -rf ./Carthage
xcodebuild clean -alltargets
.PHONY: help
help: # help: Outputs each task and the comment
@grep -E '^[a-zA-Z_-]+:.*?# .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":[^#]*? #| #"}; {printf "%-42s%s\n", $$1 $$3, $$2}'
#carthage用
.PHONY: update-carthage
update-carthage: # update carthage
mint run carthage update --platform iOS
@$(MAKE) show-carthage-dependencies
.PHONY: show-carthage-dependencies
show-carthage-dependencies:
@echo '*** Resolved dependencies:'
@cat 'Cartfile.resolved'