From 72cb9e7ac3d42d61e089a31b218cfbbf38ec6091 Mon Sep 17 00:00:00 2001 From: ash Date: Tue, 26 Nov 2024 15:20:11 +0100 Subject: [PATCH] feat: makefile build CLI (#49) Updates the makefile to build the CLI. Also removes repeated target. --- .gitignore | 3 ++- Makefile | 16 +++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index adeea4e..0f76e0f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ .terraform .env .tfworkspace -/ucangen \ No newline at end of file +/ucangen +/indexer diff --git a/Makefile b/Makefile index 20ea373..27c0541 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,14 @@ LAMBDA_GOFLAGS=-tags=lambda.norpc LAMBDA_CGO_ENABLED=0 LAMBDAS=build/getclaim/bootstrap build/getclaims/bootstrap build/getroot/bootstrap build/notifier/bootstrap build/postclaims/bootstrap build/providercache/bootstrap build/remotesync/bootstrap +indexer: + go build -o ./indexer ./cmd + +.PHONY: clean-indexer + +clean-indexer: + rm -f ./indexer + ucangen: go build -o ./ucangen cmd/ucangen/main.go @@ -31,7 +39,7 @@ clean-terraform: .PHONY: clean -clean: clean-terraform clean-lambda +clean: clean-terraform clean-lambda clean-indexer lambdas: $(LAMBDAS) @@ -65,9 +73,3 @@ plan: deploy/app/.terraform .tfworkspace $(LAMBDAS) apply: deploy/app/.terraform .tfworkspace $(LAMBDAS) tofu -chdir=deploy/app apply - - -deploy/app/.terraform: - tofu -chdir=deploy/app init - -shared: