forked from readium/r2-navigator-swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (20 loc) · 732 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
.PHONY: carthage scripts
SCRIPTS_PATH := r2-navigator-swift/EPUB/Scripts
help:
@echo "Usage: make <target>\n\n\
carthage\tGenerate the Carthage Xcode project\n\
install\tDownload NPM dependencies\n\
scripts\tBundle EPUB scripts with Webpack\n\
lint-scripts\tCheck quality of EPUB scripts\n\
"
install:
yarn --cwd "$(SCRIPTS_PATH)" install
scripts:
yarn --cwd "$(SCRIPTS_PATH)" run format
yarn --cwd "$(SCRIPTS_PATH)" run bundle
lint-scripts:
yarn --cwd "$(SCRIPTS_PATH)" run lint
carthage:
# For R2Navigator, XcodeGen generates a different project every time for
# some reason. Using the cache prevents this.
xcodegen -s project-carthage.yml --use-cache --cache-path r2-navigator-swift.xcodeproj/.xcodegen