Skip to content

feat: bat rename #95

Closed Answered by tshakalekholoane
Maik93 asked this question in Q&A
Discussion options

You must be logged in to vote

You can modify the following line in the Makefile or just use mv to rename it after building it.

bat/Makefile

Line 24 in bd230b8

GOOS=linux GOARCH=amd64 go build -ldflags=$(FLAGS) -o=./bin/bat .

- GOOS=linux GOARCH=amd64 go build -ldflags=$(FLAGS) -o=./bin/bat .
+ GOOS=linux GOARCH=amd64 go build -ldflags=$(FLAGS) -o=./bin/your_preferred_name .

Similarly, if you're using make install, change any occurrence of bat under that Make target to your preferred name.

bat/Makefile

Lines 26 to 32 in bd230b8

## install: install the application
.PHONY: install
install: build
@$(info Installing binary.)
install ./bin/bat /usr/local/bin/
@$(info In…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Maik93
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants
Converted from issue

This discussion was converted from issue #94 on August 08, 2024 09:59.