]> git.r.bdr.sh - rbdr/map/blame_incremental - Makefile
Update license URL
[rbdr/map] / Makefile
... / ...
CommitLineData
1project_name := Map
2derived_data_path := ~/Library/Developer/Xcode/DerivedData
3sparkle_path := $(shell find $(derived_data_path) -type d -path '*artifacts/sparkle/Sparkle' -print -quit)
4build_directory := builds
5sparkle_account := tranquil.systems
6
7distribute: archive package generate_appcast
8
9package:
10 @scripts/package.sh "$(project_name)" "$(build_directory)"
11
12generate_appcast:
13 @$(sparkle_path)/bin/generate_appcast --account $(sparkle_account) $(build_directory)
14
15archive: 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
18prepare:
19 mkdir -p $(build_directory)
20
21format:
22 swift format -i -r .
23
24lint:
25 swift format lint -r .
26
27.PHONY: package prepare archive generate_appcast package distribute format lint