Skip to content

Commit

Permalink
build: Create Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rlemaitre authored Dec 5, 2023
1 parent 88773f1 commit 1a8f7a8
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 1a8f7a8

Please sign in to comment.