From 1f27ea3350a95eabede7c0b99e29221ed955cae9 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Wed, 22 Mar 2023 18:14:40 +0530 Subject: make: add check target to lint and format tessen --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c9e5b34..c9016c5 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ FISHCOMPDIR := $(DATAROOTDIR)/fish/vendor_completions.d PROG = tessen SCDOC = scdoc +SHCHK = shellcheck +SHFMT = shfmt INSTALL = install .PHONY: all install minimal bashcomp fishcomp clean uninstall @@ -45,6 +47,10 @@ clean: rm -f man/$(PROG).1 rm -f man/$(PROG).5 +check: + $(SHCHK) $(PROG) + $(SHFMT) -d -s -i 2 -bn -ci -sr $(PROG) + uninstall: rm -f "$(DESTDIR)$(BINDIR)/$(PROG)" rm -f "$(DESTDIR)$(MANDIR)/man1/$(PROG).1" -- cgit v1.2.3