-
Notifications
You must be signed in to change notification settings - Fork 77
/
Makefile
27 lines (22 loc) · 657 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
SCRIPTS_PATH := readium/navigator/src/main/assets/_scripts
help:
@echo "Usage: make <target>\n\n\
lint\t\tLint the Kotlin sources with ktlint\n\
format\tFormat the Kotlin sources with ktlint\n\
scripts\tBundle the Navigator EPUB scripts\n\
"
.PHONY: lint
lint:
./gradlew ktlintCheck
.PHONY: format
format:
./gradlew ktlintFormat
.PHONY: scripts
scripts:
@which corepack >/dev/null 2>&1 || (echo "ERROR: corepack is required, please install it first\nhttps://pnpm.io/installation#using-corepack"; exit 1)
cd $(SCRIPTS_PATH); \
corepack install; \
pnpm install --frozen-lockfile; \
pnpm run format; \
pnpm run lint; \
pnpm run bundle