Skip to content

Commit

Permalink
build: Create Makefile (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlemaitre authored Feb 11, 2024
1 parent 1b40a91 commit c22b79d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SRCFILES = $(shell git ls-files "bin/**" "lib/**" "scripts/**")
SHFMT_BASE_FLAGS = -s -i 2 -ci

format:
shfmt -w $(SHFMT_BASE_FLAGS) $(SRCFILES)
.PHONY: format

format-check:
shfmt -d $(SHFMT_BASE_FLAGS) $(SRCFILES)
.PHONY: format-check

lint:
shellcheck $(SRCFILES)
.PHONY: lint

0 comments on commit c22b79d

Please sign in to comment.