28 lines
		
	
	
		
			461 B
		
	
	
	
		
			Makefile
		
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			461 B
		
	
	
	
		
			Makefile
		
	
	
	
| # Inspired from https://dustinspecker.com/posts/go-combined-unit-integration-code-coverage/ and https://netdevops.me/2023/test-coverage-for-go-integration-tests/
 | |
| BIN_DIR = $(CURDIR)/bin
 | |
| BINARY = $(BIN_DIR)/lyricdownloader
 | |
| 
 | |
| .PHONY: clean
 | |
| clean:
 | |
| 	go clean
 | |
| 
 | |
| .PHONY: dep
 | |
| dep:
 | |
| 	go mod tidy
 | |
| 
 | |
| .PHONY: fmt
 | |
| fmt:
 | |
| 	go fmt ./...
 | |
| 
 | |
| .PHONY: lint
 | |
| lint:
 | |
| 	golangci-lint run
 | |
| 
 | |
| .PHONY: build
 | |
| build:
 | |
| 	go build -o $(BINARY)
 | |
| 
 | |
| .PHONY: lint-all
 | |
| lint-all:
 | |
| 	golangci-lint run --enable-all
 |