]> git.r.bdr.sh - rbdr/map/blob - Makefile
Use comma separated strings
[rbdr/map] / Makefile
1 project_name := Map
2 derived_data_path := ~/Library/Developer/Xcode/DerivedData
3 sparkle_path := $(shell find $(derived_data_path) -type d -path '*artifacts/sparkle/Sparkle' -print -quit)
4 build_directory := builds
5 sparkle_account := tranquil.systems
6
7 distribute: archive package generate_appcast
8
9 package:
10 @scripts/package.sh "$(project_name)" "$(build_directory)"
11
12 generate_appcast:
13 @$(sparkle_path)/bin/generate_appcast --account $(sparkle_account) $(build_directory)
14
15 archive: prepare
16 xcodebuild -project $(project_name).xcodeproj -scheme $(project_name) -configuration Release -archivePath $(build_directory)/$(project_name).xcarchive archive && xcodebuild -exportArchive -archivePath $(build_directory)/$(project_name).xcarchive -exportPath $(build_directory) -exportOptionsPlist export_options.plist
17
18 prepare:
19 mkdir -p $(build_directory)
20
21 format:
22 swift format -i -r .
23
24 lint:
25 swift format lint -r .
26
27 .PHONY: package prepare archive generate_appcast package distribute format lint