mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-17 04:50:02 +02:00
31 lines
631 B
Makefile
31 lines
631 B
Makefile
|
|
GO = go
|
|
GOCCFLAGS = -v
|
|
GOLDFLAGS =
|
|
PREFIX = /usr/local
|
|
|
|
PROGRAM_NAME=eosio-api-healthcheck
|
|
SOURCES=server.go
|
|
DEPENDANCIES= github.com/firstrow/tcp_server \
|
|
github.com/liamylian/jsontime/v2 \
|
|
github.com/imroc/req
|
|
|
|
all: build
|
|
build: build/$(PROGRAM_NAME)
|
|
|
|
build/$(PROGRAM_NAME) : $(SOURCES)
|
|
$(GO) build -o $@ $(GOCCFLAGS) $(GOLDFLAGS) $<
|
|
|
|
deps:
|
|
$(GO) get $(DEPENDANCIES)
|
|
|
|
package_deb: build
|
|
export PACKAGE_NAME="$(PROGRAM_NAME)" \
|
|
export PACKAGE_VERSION="0.1.1" \
|
|
export PACKAGE_PREFIX=$(PREFIX:/%=%) \
|
|
export PACKAGE_PROGRAM="build/$(PROGRAM_NAME)" \
|
|
&& ./scripts/build_deb.sh
|
|
|
|
clean:
|
|
$(GO) clean
|
|
$(RM) -rf build/
|