aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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