-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 1.31 KB
/
Makefile
File metadata and controls
47 lines (37 loc) · 1.31 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
VERSION := $(shell git describe --tags | tr "-" " " | awk '{print $$1}')
APPLEDOC ?= appledoc
APPLEDOC_OPTS = --output docs \
--project-company "Kyle Fuller" \
--company-id "com.kylefuller" \
--project-name KFData \
--project-version "$(VERSION)" \
--create-html \
--no-repeat-first-par \
--keep-intermediate-files \
--docset-platform-family iphoneos \
--docset-atom-filename "KFData.atom" \
--docset-feed-url "http://kylef.github.com/KFData/%DOCSETATOMFILENAME" \
--docset-package-url "http://kylef.github.com/KFData/%DOCSETPACKAGEFILENAME" \
--docset-fallback-url "http://kylef.github.com/KFData/" \
--publish-docset \
--verbose 2
PROJECT_NAME=KFData
WORKSPACE=$(PROJECT_NAME).xcworkspace
XCODEBUILD=xcodebuild -workspace $(WORKSPACE)
docs: clean
$(APPLEDOC) $(APPLEDOC_OPTS) Classes Categories
clean:
rm -fr docs
test-osx:
@printf "\e[34m=> Running OS X Tests\033[0m\n"
@$(XCODEBUILD) -scheme 'OS X Tests' test
test-ios:
@printf "\e[34m=> Running iOS Tests\033[0m\n"
@$(XCODEBUILD) -scheme 'iOS Tests' -sdk iphonesimulator -destination 'name=iPhone Retina (4-inch)' test
test-podspec:
@printf "\e[34m=> Linting podspec\033[0m\n"
@pod lib lint KFData.podspec
test: test-osx test-ios test-podspec
gh-pages: docs
cp -r docs/publish/ docs/html
ghp-import docs/html