mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2026-05-17 10:15:21 +02:00
release: v1.0.0-rc
This commit is contained in:
24
Makefile
Normal file
24
Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
BIN := celo-tracker
|
||||
BOOTSTRAP_BIN := celo-tracker-cache-bootstrap
|
||||
DB_FILE := tracker_db
|
||||
BUILD_CONF := CGO_ENABLED=1 GOOS=linux GOARCH=amd64
|
||||
BUILD_COMMIT := $(shell git rev-parse --short HEAD 2> /dev/null)
|
||||
DEBUG := DEV=true
|
||||
|
||||
.PHONY: build run run-bootstrap clean clean-debug
|
||||
|
||||
clean:
|
||||
rm ${BIN} ${BOOTSTRAP_BIN}
|
||||
|
||||
clean-db:
|
||||
rm ${DB_FILE}
|
||||
|
||||
build:
|
||||
${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BOOTSTRAP_BIN} cmd/bootstrap/main.go
|
||||
${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BIN} cmd/service/main.go
|
||||
|
||||
run-bootstrap:
|
||||
${BUILD_CONF} ${DEBUG} go run cmd/bootstrap/main.go
|
||||
|
||||
run:
|
||||
${BUILD_CONF} ${DEBUG} go run cmd/service/main.go
|
||||
Reference in New Issue
Block a user