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