diff options
author | Ayush Agarwal <ayushnix@fastmail.com> | 2023-03-22 18:14:40 +0530 |
---|---|---|
committer | Ayush Agarwal <ayushnix@fastmail.com> | 2023-03-22 18:14:40 +0530 |
commit | 1f27ea3350a95eabede7c0b99e29221ed955cae9 (patch) | |
tree | 27e6ba162dcfa9b87e1b85f1cb1b10ad1c62aedd /Makefile | |
parent | f7620a119f7dbcadc07d1e29ca187a3eccea73e0 (diff) |
make: add check target to lint and format tessen
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |