Skip to content

Commit

Permalink
Fix the name in the Makefile from openvpn-auth-oauth2 -> azure-monito…
Browse files Browse the repository at this point in the history
…r-exporter (#11)

Co-authored-by: gowtham <[email protected]>
  • Loading branch information
HackToHell and gowtham-sundara authored Jun 24, 2024
1 parent 83343d6 commit 72708b0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ help: ## show this help.

.PHONY: clean
clean: ## clean builds dir
@rm -rf openvpn-auth-oauth2 openvpn-auth-oauth2.exe dist/
@rm -rf azure-monitor-exporter azure-monitor-exporter.exe dist/

.PHONY: check
check: test lint golangci ## Run all checks locally
Expand All @@ -38,24 +38,24 @@ update: ## Run dependency updates

.PHONY: build
ifeq ($(OS),Windows_NT)
build: clean openvpn-auth-oauth2.exe ## Build openvpn-auth-oauth2
build: clean azure-monitor-exporter.exe ## Build azure-monitor-exporter
else
build: clean openvpn-auth-oauth2
build: clean azure-monitor-exporter
endif


openvpn-auth-oauth2:
@go build -o openvpn-auth-oauth2 .
azure-monitor-exporter:
@go build -o azure-monitor-exporter .

openvpn-auth-oauth2.exe:
@go build -o openvpn-auth-oauth2.exe .
azure-monitor-exporter.exe:
@go build -o azure-monitor-exporter.exe .

.Phony: build-debug
build-debug: ## Build openvpn-auth-oauth2 with debug flags
@go build -gcflags="-l=4 -m=2" -o openvpn-auth-oauth2 .
build-debug: ## Build azure-monitor-exporter with debug flags
@go build -gcflags="-l=4 -m=2" -o azure-monitor-exporter .

.PHONY: test
test: ## Test openvpn-auth-oauth2
test: ## Test azure-monitor-exporter
@go test -race ./...

.PHONY: lint
Expand Down

0 comments on commit 72708b0

Please sign in to comment.