Add new Makefile

This commit is contained in:
Agustin Godnic 2023-08-03 17:55:43 -03:00
parent cb0af84b22
commit c3cd4c58e2
2 changed files with 12 additions and 8 deletions

View File

@ -1,12 +1,5 @@
SHELL := /bin/bash
## help: print this help message
.PHONY: help
help:
@echo 'Usage:'
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
build:
make -C analytics/ build
make -C api/ build
@ -15,9 +8,10 @@ build:
make -C parser/ build
make -C tx-tracker/ build
make -C contract-watcher/ build
make -C event-watcher/ build
doc:
swag init -pd
make -C api/ doc
test:
cd analytics && go test -v -cover ./...
@ -27,5 +21,6 @@ test:
cd parser && go test -v -cover ./...
cd tx-tracker && go test -v -cover ./...
cd contract-watcher && go test -v -cover ./...
cd event-watcher && go test -v -cover ./...
.PHONY: build doc test

9
event-watcher/Makefile Normal file
View File

@ -0,0 +1,9 @@
build:
CGO_ENABLED=0 GOOS=linux go build -o "./bin/service" cmd/service/main.go
test:
go test -v -cover ./...
.PHONY: build test