SERVER_OUT := "bin/app" PKG := "code.vereign.com/code/vcl" SERVER_PKG_BUILD := "${PKG}" IFRAME_LIB_LOCATION := "javascript/temp" .PHONY: all build run clean all: build run webpack-build clean dev: build run webpack-dev dep: ## Get the dependencies dep ensure build: dep ## Build the binary file for app @go build -i -v -o $(SERVER_OUT) $(SERVER_PKG_BUILD) run: build ## Run app to build iframe lib containing Restful API endpoints ./bin/app webpack-build: run ## Builds JS bundles cd javascript && yarn install && yarn build webpack-dev: run ## Builds JS bundles cd javascript && yarn install && yarn start clean: webpack-build ## Remove previous builds @rm $(SERVER_OUT) @rm -rf $(IFRAME_LIB_LOCATION) 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