From bd3cf9bf9c32f14ce6f599ab1797ead39b4bcb64 Mon Sep 17 00:00:00 2001 From: Sanjay Madan Date: Thu, 14 Jul 2016 22:12:06 -0700 Subject: Added Makefile to build from the command line --- Makefile | 10 ++++++++++ README.md | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f1a99cc --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: release + +ifndef BUILDDIR + BUILDDIR := $(shell mktemp -d "$(TMPDIR)/MASShortcut.XXXXXX") +endif + +release: + xcodebuild -scheme MASShortcut -configuration Release -derivedDataPath "$(BUILDDIR)" build + open "$(BUILDDIR)/Build/Products/Release" + diff --git a/README.md b/README.md index 659ef57..dc83c1a 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ If you want to stick to the 1.x branch, you can use the version smart match oper You can also install via [Carthage](https://github.com/Carthage/Carthage), or you can use Git submodules and link against the MASShortcut framework manually. +To build from the command line, type 'make release'. The framework will be created in a temporary directory and revealed in Finder when the build is complete. + # Usage I hope, it is really easy: -- cgit v1.2.3