Skip to content

Commit

Permalink
Remove unused zip target from Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tagatac committed Jul 10, 2024
1 parent 1c6cd72 commit ee3d3ae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ COVERAGE_FILE=coverage.out
BAGOUP_VERSION?=$(shell git describe --tags | sed 's/^v//g')
OS=$(shell uname -s)
HW=$(shell uname -m)
ZIPFILE="bagoup-$(BAGOUP_VERSION)-$(OS)-$(HW).zip"

SRC=$(shell find . -type f -name '*.go' -not -name '*_test.go' -not -name 'mock_*.go')
TEMPLATES=$(shell find . -type f -name '*.tmpl')
Expand All @@ -25,7 +24,7 @@ bin/bagoup: $(SRC) $(TEMPLATES) download
mkdir -vp bin
go build $(LDFLAGS) -o $@ cmd/bagoup/main.go

.PHONY: deps download from-archive generate test zip clean
.PHONY: deps download from-archive generate test clean

deps:
go get -u -v ./...
Expand All @@ -49,11 +48,7 @@ test: download
go test -race -coverprofile=$(COVERAGE_FILE) -coverpkg=$(PKGS_TO_COVER) $(PKGS_TO_TEST)
go tool cover -func=$(COVERAGE_FILE)

zip: build
zip --recurse-paths $(ZIPFILE) bin

clean:
rm -vrf \
bin \
$(COVERAGE_FILE) \
$(ZIPFILE)
$(COVERAGE_FILE)

0 comments on commit ee3d3ae

Please sign in to comment.