monolisa-nerdfont-patch/Makefile

36 lines
826 B
Makefile
Raw Normal View History

2022-12-13 00:27:51 -06:00
-include .env
2022-08-12 13:37:15 -05:00
ARGS ?= -c
2022-12-07 16:12:24 -06:00
NF_SRC := $(shell ./bin/get-font-files src)
2022-12-13 00:12:00 -06:00
FONT_FLAGS := $(shell ./bin/get-font-files MonoLisa 'otf,ttf,woff,woff2')
2022-08-12 13:37:15 -05:00
2023-01-29 21:57:06 -06:00
patch: ./bin/font-patcher ## apply nerd fonts patch |> -gs b_magenta -ms bold
2022-12-07 16:12:24 -06:00
@./bin/patch-monolisa \
2022-12-13 00:12:00 -06:00
$(FONT_FLAGS) \
2022-12-07 16:12:24 -06:00
$(ARGS)
2022-12-01 14:16:40 -06:00
2023-01-29 21:57:06 -06:00
update-fonts: ## move fonts and update fc-cache
2022-09-05 18:37:47 -05:00
$(call msg,Adding Fonts To System)
2022-08-12 13:37:15 -05:00
@./bin/update-fonts
@fc-cache -f -v
2023-01-29 21:57:06 -06:00
check: ## check fc-list for MonoLisa
2022-10-13 10:41:38 -05:00
$(call msg,Checking System for Fonts)
2022-08-12 13:37:15 -05:00
@fc-list | grep "MonoLisa"
2023-01-29 21:57:06 -06:00
update-src: ## update nerd fonts source
2022-09-05 18:37:47 -05:00
$(call msg,Updating Source Files)
2022-08-12 13:37:15 -05:00
@./bin/update-src
2023-01-29 21:57:06 -06:00
lint: ## run pre-commit hooks
2023-01-07 10:12:48 -06:00
@pre-commit run --all
2022-08-12 13:37:15 -05:00
2023-01-29 21:57:06 -06:00
clean: ## remove patched fonts
2022-12-28 12:35:02 -06:00
@rm -rf patched/*
2022-09-05 18:37:47 -05:00
2023-01-07 10:21:21 -06:00
# depends on daylinmorgan/yartsu
assets/help.svg:
yartsu -o $@ -t 'make help' -- $(MAKE) -s help
2023-01-29 21:57:06 -06:00
-include .task.cfg.mk