Skip to content
Snippets Groups Projects
Commit 517d15e4 authored by Markin Igor's avatar Markin Igor
Browse files

Made Makefile cleanup temporary files.

parent 8c0b1ca6
No related branches found
No related tags found
1 merge request!4Use webpack for bundling JS libs and move Golang code related to Iframe generation there
SERVER_OUT := "bin/app" SERVER_OUT := "bin/app"
PKG := "code.vereign.com/code/vcl" PKG := "code.vereign.com/code/vcl"
SERVER_PKG_BUILD := "${PKG}" SERVER_PKG_BUILD := "${PKG}"
IFRAME_LIB_LOCATION := "javascript/temp"
.PHONY: all build clean run .PHONY: all build run clean
all: build run bundle-libs all: build run bundle-libs clean
dep: ## Get the dependencies dep: ## Get the dependencies
dep ensure dep ensure
...@@ -12,18 +13,19 @@ dep: ## Get the dependencies ...@@ -12,18 +13,19 @@ dep: ## Get the dependencies
build: dep ## Build the binary file for app build: dep ## Build the binary file for app
@go build -i -v -o $(SERVER_OUT) $(SERVER_PKG_BUILD) @go build -i -v -o $(SERVER_OUT) $(SERVER_PKG_BUILD)
clean: ## Remove previous builds run: build ## Run app to build iframe lib containing Restful API endpoints
@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}'
run: build ## Run app
./bin/app ./bin/app
bundle-libs: ## Builds JS bundles bundle-libs: run ## Builds JS bundles
cd javascript && yarn install && yarn build cd javascript && yarn install && yarn build
clean: bundle-libs ## 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: fresh:
rm -rf ./vendor rm -rf ./vendor
rm -rf ./Gopkg.lock rm -rf ./Gopkg.lock
\ No newline at end of file
node_modules node_modules
dist dist
temp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment