Merge pull request #207 from fox-forks/hyperupcall-fix-makefile

fix: Makefile syntax and whitespace quoting
This commit is contained in:
Ryan Delaney 2023-12-12 17:29:19 +00:00 committed by GitHub
commit eadc123d13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
export LC_ALL=C
FILE_NAME=lscolors
export XDG_DATA_HOME ?= $${$$HOME/.local/share}
XDG_DATA_HOME ?= $(HOME)/.local/share
XDG_DATA_HOME := "$(XDG_DATA_HOME)"
all: generate
clean:
@ -13,11 +13,11 @@ generate: clean
@command sort LS_COLORS | dircolors --c-shell - > ${FILE_NAME}.csh
install: generate
@command cp ${FILE_NAME}.sh ${FILE_NAME}.csh ${XDG_DATA_HOME}
@command cp ${FILE_NAME}.sh ${FILE_NAME}.csh $(XDG_DATA_HOME)
@echo "To enable the colors, add the following line to your shell's start-up script:"
@echo ""
@echo "For Bourne shell (e.g. ~/.bashrc or ~/.zshrc):"
@echo " source ${XDG_DATA_HOME}/${FILE_NAME}.sh"
@echo " source $(XDG_DATA_HOME)/${FILE_NAME}.sh"
@echo ""
@echo "For C shell (e.g. ~/.cshrc):"
@echo " source ${XDG_DATA_HOME}/${FILE_NAME}.csh"
@echo " source $(XDG_DATA_HOME)/${FILE_NAME}.csh"