aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-02-05 22:26:47 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-02-05 22:26:47 +0100
commit5c3ea897d062a47bc8cd6255fb8c36bad2f0733f (patch)
tree1c1b936b07e1829dd616829a141620644a64b080 /Makefile
parent8af63e63454d2c0e4c48a371a6ecdbfd90230f44 (diff)
Add Makefile to help package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f6f9bae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+project_name := Hotline
+build_directory := builds
+
+
+distribute: archive package
+
+package:
+ @scripts/package.sh "$(project_name)" "$(build_directory)"
+
+archive: prepare
+ 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
+
+prepare:
+ mkdir -p $(build_directory)
+
+format:
+ swift format -i -r .
+
+lint:
+ swift format lint -r .
+
+.PHONY: package prepare archive package distribute format lint