1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-08-26 20:48:13 +02:00

Initial commit

This commit is contained in:
Henrik Hautakoski 2020-02-03 13:24:34 +01:00
commit 33c8439604
9 changed files with 270 additions and 0 deletions

31
Makefile Normal file
View file

@ -0,0 +1,31 @@
GO = go
GOCCFLAGS = -v
GOLDFLAGS =
PREFIX = /usr/local
PROGRAM_NAME=eos-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.0" \
export PACKAGE_PREFIX=$(PREFIX:/%=%) \
export PACKAGE_PROGRAM="build/$(PROGRAM_NAME)" \
&& ./scripts/build_deb.sh
clean:
$(GO) clean
$(RM) -rf build/