Skip to content
Snippets Groups Projects
Makefile 581 B
Newer Older
  • Learn to ignore specific revisions
  • SERVER_OUT := "bin/app"
    PKG := "code.vereign.com/code/vcl"
    SERVER_PKG_BUILD := "${PKG}"
    
    .PHONY: all build clean run
    
    all: build run
    
    
    dep: ## Get the dependencies
    	dep ensure
    
    
    build: dep ## Build the binary file for app
    	@go build -i -v -o $(SERVER_OUT) $(SERVER_PKG_BUILD)
    
    clean: ## Remove previous builds
    	@rm $(SERVER_OUT)
    
    
    help: ## Display this help screen
    	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
    
    
    fresh: 
    	rm -rf ./vendor
    	rm -rf ./Gopkg.lock