Skip to content

Commit

Permalink
Merge pull request #74 from bgp/make-means-build
Browse files Browse the repository at this point in the history
Tweak Makefile to vet and build stayrtr and friends by default
  • Loading branch information
benjojo authored Jan 19, 2023
2 parents ad3ed83 + 49dafac commit d7dfb7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ OUTPUT_RTRMON := $(DIST_DIR)rtrmon$(SUFFIX)
export CGO_ENABLED ?= 0


.PHONY: build-all
build-all: vet build-stayrtr build-rtrdump build-rtrmon

.PHONY: vet
vet:
go vet cmd/stayrtr/stayrtr.go
Expand All @@ -46,9 +49,6 @@ prepare:
clean:
rm -rf $(DIST_DIR)

.PHONY: build-all
build-all: build-stayrtr build-rtrdump build-rtrmon

.PHONY: build-stayrtr
build-stayrtr: prepare
go build -trimpath -ldflags $(LDFLAGS) -o $(OUTPUT_STAYRTR) cmd/stayrtr/stayrtr.go
Expand Down

0 comments on commit d7dfb7c

Please sign in to comment.