Skip to content
Snippets Groups Projects
Select Git revision
  • main
1 result

Makefile

Blame
  • Makefile 311 B
    .PHONY: all generate test
    
    all: generate test
    	test -d bin || mkdir bin
    	go build -o ./bin ./...
    
    include .bingo/Variables.mk
    
    generate: api/endpoints.go
    
    api/endpoints.go: api/oapi-config.yaml api/units.yaml
    	OAPI_CODEGEN=$(OAPI_CODEGEN) \
    	  go generate api/generate.go
    
    test:
    	go test ./...
    
    # vim:ft=make
    #