Skip to content

Commit

Permalink
makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia committed Sep 2, 2023
1 parent e3c88c0 commit cc263c5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
all: runparts check

runparts: generate
go build ./...
go build

check: runparts testdata run-tests.sh clean-testdata
check: runparts backup-testdata run-tests.sh
./run-tests.sh ./runparts testdata

generate: mod-tidy
Expand All @@ -14,11 +14,15 @@ generate: mod-tidy
mod-tidy: go.mod
go mod tidy

distclean: clean clean-testdata
distclean: clean restore-testdata
clean:
rm -f runparts
rm -fv runparts

clean-testdata:
find ./testdata/ -name 'gotStd*' -delete
backup-testdata: testdata
cp -a testdata backup-testdata

.PHONY: all check clean distclean clean-testdata runparts mod-tidy generate
restore-testdata: backup-testdata
rm -rfv testdata
mv -v backup-testdata testdata

.PHONY: all check clean distclean runparts mod-tidy generate

0 comments on commit cc263c5

Please sign in to comment.