diff options
author | Petter Uvesten <uvesten@everichon.com> | 2017-01-12 15:42:15 +0100 |
---|---|---|
committer | Bryce Fisher-Fleig <hckr1292@gmail.com> | 2017-03-06 10:27:25 -0800 |
commit | 0a6ffaab5f3d87f5df280b63d2b76910e047fd80 (patch) | |
tree | e0b040a27500ae4e6c07d13f50d6d0a3c609e00e | |
parent | 0ef98733eaed4b2ce25faf2bb9f3476938e76123 (diff) |
Updated Makefile to put binary in subdir
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |