Skip to content

Commit

Permalink
feat: makefile build CLI (#49)
Browse files Browse the repository at this point in the history
Updates the makefile to build the CLI.

Also removes repeated target.
  • Loading branch information
alanshaw authored Nov 26, 2024
1 parent 7841451 commit 72cb9e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
.terraform
.env
.tfworkspace
/ucangen
/ucangen
/indexer
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -31,7 +39,7 @@ clean-terraform:

.PHONY: clean

clean: clean-terraform clean-lambda
clean: clean-terraform clean-lambda clean-indexer

lambdas: $(LAMBDAS)

Expand Down Expand Up @@ -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:

0 comments on commit 72cb9e7

Please sign in to comment.