All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			374 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			374 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
.PHONY: all clean test
 | 
						|
 | 
						|
BUILD_DIR = ./build
 | 
						|
APPS := $(notdir $(wildcard ./cmd/*))
 | 
						|
FLAGS := "-s -w"
 | 
						|
 | 
						|
all:
 | 
						|
	$(foreach APP,$(APPS), go build -ldflags=$(FLAGS) -o $(BUILD_DIR)/$(APP) ./cmd/$(APP);)
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -rf $(BUILD_DIR)/*
 | 
						|
	rm -rf *.out
 | 
						|
 | 
						|
prepare-test:
 | 
						|
	git submodule update --init --remote
 | 
						|
 | 
						|
test:
 | 
						|
	./scripts/prepare_test_repos.sh
 | 
						|
	go test -coverprofile cover.out -v ./...
 |