-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
22 lines (17 loc) · 912 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
APP_DIR=${PWD}/App
BUILD_TOOLS_DIR=${PWD}/BuildTools
SWIFTRUN=swift run --package-path ${BUILD_TOOLS_DIR} -c release
BUILD_NUMBER_FILE=${PWD}/.build_number
init:; swift package resolve --package-path ${BUILD_TOOLS_DIR}; swift package resolve --package-path ${APP_DIR}
clean:; rm -rf ${BUILD_TOOLS_DIR}/.build; rm -rf ${APP_DIR}/.build;
conf:; ${SWIFTRUN} swift-format --mode dump-configuration > .swift-format
lint:
${SWIFTRUN} swift-format lint ${BUILD_TOOLS_DIR}/Package.swift
${SWIFTRUN} swift-format lint ${APP_DIR}/Package.swift
${SWIFTRUN} swift-format lint -r ${APP_DIR}/Sources
${SWIFTRUN} swift-format lint -r ${APP_DIR}/Tests
format:
${SWIFTRUN} swift-format format -p -i ${BUILD_TOOLS_DIR}/Package.swift
${SWIFTRUN} swift-format format -p -i ${APP_DIR}/Package.swift
${SWIFTRUN} swift-format format -p -i -r ${APP_DIR}/Sources
${SWIFTRUN} swift-format format -p -i -r ${APP_DIR}/Tests