catppuccin/resources/Makefile

15 lines
669 B
Makefile
Raw Normal View History

LOG_INFO=$(shell date +"%H:%M:%S") \e[0;34mINFO\e[0m
LOG_ERROR=$(shell date +"%H:%M:%S") \e[1;31mERROR\e[0m
LOG_WARNING=$(shell date +"%H:%M:%S") \e[0;33mWARNING\e[0m
LOG_SUCCESS=$(shell date +"%H:%M:%S") \e[0;32mSUCCESS\e[0m
ROOT_DIR=$(shell git rev-parse --show-toplevel)
2022-01-18 03:35:40 +00:00
dest=/usr/local/bin
export ROOT_DIR
link:
@echo -e "$(LOG_INFO) Linking Catppuccin's resources..."
@for file in * ; do [[ $$file != "Makefile" ]] && [[ $$file != "README.md" ]] && { parsed="$${file/'.sh'/''}" ; echo -e "$(LOG_WARNING) Creating symlink for $${parsed}" ; ln -s $(ROOT_DIR)/resources/$$file $(dest)/$$parsed ; } done
@echo -e "$(LOG_SUCCESS) Finished linking resources 🥳"