]> git.r.bdr.sh - rbdr/map/blame - Makefile
Add some debouncing
[rbdr/map] / Makefile
CommitLineData
4e7e11cf
RBR
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)
5e8ff485
RBR
20
21format:
22 swift format -i -r .
23
24lint:
e2c37ac1 25 swift format lint -r .
5e8ff485 26
4e7e11cf 27.PHONY: package prepare archive generate_appcast package distribute format lint