feat: add makefile for the smc

This commit is contained in:
Serhiy Mytrovtsiy
2021-06-05 12:06:47 +02:00
parent 13707090eb
commit 509401c2b8
2 changed files with 18 additions and 1 deletions

2
.gitignore vendored
View File

@@ -10,6 +10,6 @@ Stats.app
create-dmg
dSYMs.zip
Stats.dmg.zip
smc
SMC/smc
Cartfile.resolved

17
SMC/Makefile Normal file
View File

@@ -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