Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio committed Dec 29, 2023
1 parent b91ccd7 commit 66dba30
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ check: $(COVERAGE_REPORT_FILENAME)
$(COVERAGE_REPORT_FILENAME): version.txt
go test $(VERBOSE) -mod=readonly -race -cover -covermode=atomic -coverprofile=$@ ./...

deps:
echo "Ensure dependencies have not been modified ..." >&2
go mod verify
go mod tidy
go generate ./...

distclean: clean
rm -rf dist/
rm -rf unixtools.dmg
Expand All @@ -65,7 +59,11 @@ clean:
$(COVERAGE_REPORT_FILENAME) \
version.txt

version.txt: deps
version.txt:
echo "Ensure dependencies have not been modified ..." >&2
go mod verify
go mod tidy
go generate ./...
cp -f ./internal/version/version.txt version.txt

list:
Expand All @@ -87,4 +85,4 @@ unixtools.dmg: version.txt macos-codesign
--sandbox-safe --no-internet-enable \
$@ dist/unixtools-$${VERSION}

.PHONY: all clean check distclean build list macos-codesign deps
.PHONY: all clean check distclean build list macos-codesign

0 comments on commit 66dba30

Please sign in to comment.