-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
44 lines (30 loc) · 935 Bytes
/
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
PRODUCT_NAME=Regex
XCTOOL=/usr/local/bin/xctool
DOCS_OUTPUT_DIR=~/projects/_swift/_docs/$(PRODUCT_NAME)
GITHUB_URL=https://github.com/brynbellomy/$(PRODUCT_NAME)
PODSPEC_PATH=./$(PRODUCT_NAME).podspec
SRC_ROOT=./
all: build
docs: .FORCE-DOCS
.FORCE-DOCS:
mkdir -p $(DOCS_OUTPUT_DIR)
jazzy -o $(DOCS_OUTPUT_DIR) \
-a 'bryn austin bellomy' \
-u 'https://github.com/brynbellomy' \
-m $(PRODUCT_NAME) \
-g $(GITHUB_URL) \
--source-directory $(SRC_ROOT)
# --podspec $(PODSPEC_PATH) \
build: build/Products/Debug/$(PRODUCT_NAME).framework
test:
$(XCTOOL) test
clean:
rm -rf ./build
pod clean
build/Products/Debug/$(PRODUCT_NAME).framework:
$(XCTOOL) build
# $(XCTOOL) build -reporter json-compilation-database > ./compile_commands.json
# build/Products/Debug/$(PRODUCT_NAME).framework:
# $(XCTOOL) build \
# | NODE_PATH=/usr/local/lib/node_modules \
# /usr/local/bin/node ./format-build-json.js