Dotfiles/vim/theme/cyberqueer.nvim/Makefile

35 lines
701 B
Makefile
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

ifeq ($(OS),Windows_NT)
GREEN=
RESTORE=
else
GREEN="\033[0;32m"
RESTORE="\033[0m"
endif
# make the output of the message appear green
define style_calls
$(eval $@_msg = $(1))
echo ${GREEN}${$@_msg}${RESTORE}
endef
lint: style-lint
@$(call style_calls,"Running selene")
@selene --display-style quiet --config ./selene.toml lua
@$(call style_calls,"Done!")
.PHONY: lint
style-lint:
@$(call style_calls,"Running stylua check")
@stylua --color always -f ./.stylua.toml --check lua
@$(call style_calls,"Done!")
.PHONY: style-lint
format:
@$(call style_calls,"Running stylua format")
@stylua --color always -f ./.stylua.toml lua
@$(call style_calls,"Done!")
.PHONY: format