1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix Makefile manpage generation

Signed-off-by: Dennis Maier <d.maier94@web.de>
Co-authored-by: Christian Duerr <contact@christianduerr.com>
This commit is contained in:
maierd 2023-05-29 11:22:15 +02:00 committed by GitHub
parent e3746e49a1
commit d94cb6be99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -14,6 +14,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install dependencies
run: brew install scdoc
- name: Install ARM target - name: Install ARM target
run: rustup update && rustup target add aarch64-apple-darwin run: rustup update && rustup target add aarch64-apple-darwin
- name: Test - name: Test

View file

@ -2,8 +2,8 @@ TARGET = alacritty
ASSETS_DIR = extra ASSETS_DIR = extra
RELEASE_DIR = target/release RELEASE_DIR = target/release
MANPAGE = $(ASSETS_DIR)/alacritty.man MANPAGE = $(ASSETS_DIR)/man/alacritty.1.scd
MANPAGE-MSG = $(ASSETS_DIR)/alacritty-msg.man MANPAGE-MSG = $(ASSETS_DIR)/man/alacritty-msg.1.scd
CONFIGFILE = alacritty.yml CONFIGFILE = alacritty.yml
TERMINFO = $(ASSETS_DIR)/alacritty.info TERMINFO = $(ASSETS_DIR)/alacritty.info
COMPLETIONS_DIR = $(ASSETS_DIR)/completions COMPLETIONS_DIR = $(ASSETS_DIR)/completions
@ -46,8 +46,8 @@ $(APP_NAME)-%: $(TARGET)-%
@mkdir -p $(APP_BINARY_DIR) @mkdir -p $(APP_BINARY_DIR)
@mkdir -p $(APP_EXTRAS_DIR) @mkdir -p $(APP_EXTRAS_DIR)
@mkdir -p $(APP_COMPLETIONS_DIR) @mkdir -p $(APP_COMPLETIONS_DIR)
@gzip -c $(MANPAGE) > $(APP_EXTRAS_DIR)/alacritty.1.gz @scdoc < $(MANPAGE) | gzip -c > $(APP_EXTRAS_DIR)/alacritty.1.gz
@gzip -c $(MANPAGE-MSG) > $(APP_EXTRAS_DIR)/alacritty-msg.1.gz @scdoc < $(MANPAGE-MSG) | gzip -c > $(APP_EXTRAS_DIR)/alacritty-msg.1.gz
@tic -xe alacritty,alacritty-direct -o $(APP_EXTRAS_DIR) $(TERMINFO) @tic -xe alacritty,alacritty-direct -o $(APP_EXTRAS_DIR) $(TERMINFO)
@cp -fRp $(APP_TEMPLATE) $(APP_DIR) @cp -fRp $(APP_TEMPLATE) $(APP_DIR)
@cp -fp $(APP_BINARY) $(APP_BINARY_DIR) @cp -fp $(APP_BINARY) $(APP_BINARY_DIR)