From 509401c2b8b902a9a9e46bcf5d5915dc9c23256a Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sat, 5 Jun 2021 12:06:47 +0200 Subject: [PATCH] feat: add makefile for the smc --- .gitignore | 2 +- SMC/Makefile | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 SMC/Makefile diff --git a/.gitignore b/.gitignore index 53559544..2108a86d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,6 @@ Stats.app create-dmg dSYMs.zip Stats.dmg.zip -smc +SMC/smc Cartfile.resolved \ No newline at end of file diff --git a/SMC/Makefile b/SMC/Makefile new file mode 100644 index 00000000..7b08f20f --- /dev/null +++ b/SMC/Makefile @@ -0,0 +1,17 @@ +.PHONY: build +.SILENT: build + +build: + rm -rf ./build + + xcodebuild \ + -project ../Stats.xcodeproj \ + -scheme SMC \ + -destination 'platform=OS X,arch=x86_64' \ + -configuration Release archive \ + -archivePath ./build/smc.xcarchive \ + SKIP_INSTALL=NO + + cp ./build/smc.xcarchive/Products/usr/local/bin/smc ./ + + rm -rf ./build