From 0a6ffaab5f3d87f5df280b63d2b76910e047fd80 Mon Sep 17 00:00:00 2001 From: Petter Uvesten Date: Thu, 12 Jan 2017 15:42:15 +0100 Subject: [PATCH] Updated Makefile to put binary in subdir --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6eb4d521..792fbb0f 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,12 @@ TARGET = alacritty APP_NAME = Alacritty.app ASSETS_DIR = assets RELEASE_DIR = target/release +BINARY_FILE = $(RELEASE_DIR)/$(TARGET) APP_TEMPLATE = $(ASSETS_DIR)/osx/$(APP_NAME) APP_DIR = $(RELEASE_DIR)/osx APP_BINARY_DIR = $(APP_DIR)/$(APP_NAME)/Contents/MacOS + DMG_NAME = Alacritty.dmg DMG_DIR = $(RELEASE_DIR)/osx @@ -26,7 +28,8 @@ app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary $(APP_NAME): $(TARGET) $(APP_TEMPLATE) @mkdir -p $(APP_DIR) @cp -R $(APP_TEMPLATE) $(APP_DIR) - @cp $< $(APP_BINARY_DIR) + @mkdir $(APP_BINARY_DIR) + @cp $(BINARY_FILE) $(APP_BINARY_DIR) @echo "$@ created in $(APP_DIR)" dmg: | $(DMG_NAME) ## Pack Alacritty.app into .dmg