mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Updated Makefile to put binary in subdir
This commit is contained in:
parent
0ef98733ea
commit
0a6ffaab5f
1 changed files with 4 additions and 1 deletions
5
Makefile
5
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
|
||||
|
|
Loading…
Reference in a new issue