aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-11-06 06:11:53 +0100
committerTeddy Wing2018-11-06 06:11:53 +0100
commitafc5618b070e45f2bf407e06e780463ec8491292 (patch)
tree93a25a774be9a58a7405e8ce42e1aec589c1e134 /Makefile
parente9b638521e7c450e4947090d3672aab852c8e758 (diff)
downloadDomeKey-afc5618b070e45f2bf407e06e780463ec8491292.tar.bz2
Makefile(dist/dome-key): Copy binary from xcarchive
The release build is 1.5 Mb, while the archive is 1.1 Mb. Not sure what additional optimisations Xcode applies when it archives, but clearly that's the build we should be distributing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f2029ff..cf204e2 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ RUST_LIB_RELEASE := $(RUST_DIR)/$(RUST_LOCAL_LIB_RELEASE)
DEBUG_PRODUCT := build/Build/Products/Debug/DomeKey
RELEASE_PRODUCT := build/Build/Products/Release/DomeKey
+ARCHIVE_PRODUCT := build/Release.xcarchive/Products/usr/local/bin/DomeKey
# Build debug
@@ -43,7 +44,9 @@ $(RUST_LIB_RELEASE): $(RUST_SOURCE_FILES)
# Archive
.PHONY: archive
-archive: clean-release
+archive: $(ARCHIVE_PRODUCT)
+
+$(ARCHIVE_PRODUCT): clean-release
xcodebuild -project DomeKey.xcodeproj \
-scheme DomeKey \
-configuration Release \
@@ -98,5 +101,5 @@ dist-all: dist/dome-key
dist:
mkdir -p dist
-dist/dome-key: $(RELEASE_PRODUCT) dist
+dist/dome-key: $(ARCHIVE_PRODUCT) dist
cp $< $@