Skip to content

Commit

Permalink
Refactor Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysses Souza <[email protected]>
  • Loading branch information
ulyssessouza committed Feb 15, 2024
1 parent 3ff5702 commit 45ed0f8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
all: setup
rm -rf gen
all: clean gen test
@echo "Done"

test:
@gotestsum --format testname ./...

gen:
antlr -Dlanguage=Go -o gen/fileparser -package fileparser EnvLangFile.g4
antlr -Dlanguage=Go -o gen/valueparser -package valueparser EnvLangValue.g4
@gotestsum --format testname ./...

clean:
rm -rf gen

setup:
go install gotest.tools/[email protected]

0 comments on commit 45ed0f8

Please sign in to comment.