Makefile

Import template repository

Custom makefile in the service

export BIFROST_DIR ?= ../../third_party/bifrost
export PROTO_DIR ?= ../protos-repo
export PROTOC_OPT ?= "-I../third_party"


export GEN_PROTO_GO_VALIDATE ?= true
export GEN_PROTO_GO_REST ?= true
export GEN_PROTO_GO_REST_GW ?= true
export GEN_PROTO_GO_AMQP ?= true
export GEN_PROTO_GO_VALIDATE_OPT ?= validate_enum=true
# export DEBUG ?= true

-include $(BIFROST_DIR)/Makefile_build


run_dev: ## Run service locally
	ASJARD_CONF_DIR="$(PWD)/conf $(PWD)/apis/api/conf"  go run -race ./apis/api

View help

You will see a result similar to the following

Last updated