forked from mapbox/mapbox-events-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
74 lines (59 loc) · 1.75 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
67
68
69
70
71
72
73
74
OUTPUT_PATH = build
PROJ_PATH = $(IOS_OUTPUT_PATH)/mbgl.xcodeproj
CARTHAGE_PATH = Carthage
.PHONY: name-header
name-header:
./scripts/package.sh -h
.PHONY: get-current-version
get-current-version:
./scripts/package.sh -v
.PHONY: tag-version
tag-version:
./scripts/package.sh -t $(VERSION)
.PHONY: create-static
create-static:
./scripts/package.sh -s
.PHONY: clean-carthage
clean-carthage:
rm -fr $(CARTHAGE_PATH)/*
.PHONY: clean
clean: clean-carthage
rm -fr $(OUTPUT_PATH)
.PHONY: pod-lint
pod-lint:
pod lib lint
.PHONE: preflight-checks
preflight-checks: pod-lint
DOCS_DIR := docs
DOCS_INDEX = $(DOCS_DIR)/index.html
DOCS_README = readme.md
DOCS_LICENSE = LICENSE.md
LOWDOWN_PATH = $(shell which lowdown)
MARKDOWN_PATH = $(shell which multimarkdown)
ifneq ($(LOWDOWN_PATH),)
MARKDOWN_TOOL = $(LOWDOWN_PATH)
MARKDOWN_ARGS = "-so"
else ifneq ($(MARKDOWN_PATH),)
MARKDOWN_TOOL = $(MARKDOWN_PATH)
MARKDOWN_ARGS = "-s"
endif
.PHONY: headerdoc
headerdoc:
find MapboxMobileEvents -type f -name '*.h' | xargs headerdoc2html -o $(DOCS_DIR)
gatherheaderdoc $(DOCS_DIR)
.PHONY: docindex
docindex:
echo "<html><head><title>MapboxMobileEvents</title><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"><body>" > $(DOCS_INDEX)
$(MARKDOWN_TOOL) $(MARKDOWN_ARGS) $(DOCS_README) >> $(DOCS_INDEX)
echo "<h2>License</h2><tt>" >> $(DOCS_INDEX)
$(MARKDOWN_TOOL) $(MARKDOWN_ARGS) $(DOCS_LICENSE) >> $(DOCS_INDEX)
echo "</tt></body></html>" >> $(DOCS_INDEX)
.PHONY: build
build: create-static
xcodebuild -project MapboxMobileEvents.xcodeproj -scheme "MapboxMobileEvents (Development)" build
.PHONY: test
test:
xcodebuild -project MapboxMobileEvents.xcodeproj -scheme "MMETestHost" test
.PHONY: docs
docs: $(DOCS_DIR) headerdoc docindex
open $(DOCS_INDEX)