Skip to content

Commit

Permalink
ci: update clean target
Browse files Browse the repository at this point in the history
Signed-off-by: VirtualTam <[email protected]>
  • Loading branch information
virtualtam committed Aug 11, 2022
1 parent 3d3a8ec commit 4235272
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
# https://github.com/prometheus/prometheus/blob/master/Makefile.common
include Makefile.common

BUILD_DIR ?= build
SRC_FILES := $(shell find . -name "*.go")

all: lint cover build
.PHONY: all

clean:
rm -rf .build $(BUILD_DIR)
rm -rf .build .tarballs ccache_exporter ccacheparser
.PHONY: clean

$(BUILD_DIR)/%: $(SRC_FILES)
go build -trimpath -o $@ ./cmd/$*

lint:
golangci-lint run ./...
.PHONY: lint
Expand Down

0 comments on commit 4235272

Please sign in to comment.