Skip to content
Snippets Groups Projects
Commit 97591861 authored by m.nabokikh's avatar m.nabokikh
Browse files

Cleanup Makefile

parent 00950eed
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,11 @@ PROTOC_GEN_GO_GRPC_VERSION = 1.1.0
KIND_NODE_IMAGE = "kindest/node:v1.19.11@sha256:07db187ae84b4b7de440a73886f008cf903fcf5764ba8106a9fd5243d6f32729"
KIND_TMP_DIR = "$(PWD)/bin/test/dex-kind-kubeconfig"
build: bin/dex
.PHONY: generate
generate:
@go generate $(REPO_PATH)/storage/ent/
build: generate bin/dex
bin/dex:
@mkdir -p bin/
......@@ -46,7 +50,7 @@ bin/example-app:
@cd examples/ && go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/examples/example-app
.PHONY: release-binary
release-binary:
release-binary: generate
@go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
docker-compose.override.yaml:
......@@ -89,9 +93,6 @@ bin/golangci-lint-${GOLANGCI_VERSION}:
lint: bin/golangci-lint ## Run linter
bin/golangci-lint run
lint-fix: bin/golangci-lint ## Run linter and fix issues
bin/golangci-lint run --fix
.PHONY: fix
fix: bin/golangci-lint ## Fix lint violations
bin/golangci-lint run --fix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment