Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (39 loc) · 1.31 KB
/
Copy pathMakefile
File metadata and controls
54 lines (39 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
47
48
49
50
51
52
53
54
.PHONY: build test lint coverage app run install dmg appstore icon demo-pdfs ipad-simulator ipad-install ipad-uitest clean
build:
swift build
test:
swift test
lint:
swiftlint --strict --quiet
coverage:
scripts/coverage.sh
app:
scripts/build-app.sh
run: app
open "build/Scrollkeeper.app"
# Copies the built app into /Applications, replacing an earlier copy.
install: app
rm -rf "/Applications/Scrollkeeper.app"
ditto "build/Scrollkeeper.app" "/Applications/Scrollkeeper.app"
dmg: app
scripts/make-dmg.sh
# Builds the Mac App Store package, build/appstore/Scrollkeeper.pkg (see scripts/build-app.sh for the variables).
appstore:
CHANNEL=appstore scripts/build-app.sh
# Rewrites the demo library's PDFs from tabletop-kit's DemoLibraryTool (checkouts beside this one).
demo-pdfs:
scripts/make-demo-pdfs.sh
# Redraws Resources/AppIcon.icns from scripts/make-icon.swift.
icon:
swift scripts/make-icon.swift
# Builds the iPad app and starts it in a simulator. IPAD_SIMULATOR names the simulator.
ipad-simulator:
scripts/run-ipad-simulator.sh
# Builds the iPad app and installs it on a connected iPad. IPAD names the iPad.
ipad-install:
scripts/install-ipad.sh
# Runs the iPad UI tests in a simulator, against the app's built-in demo library.
ipad-uitest:
scripts/run-ipad-uitests.sh
clean:
rm -rf .build build ios/build