mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-08-30 21:28:13 +02:00
Refactor: move internal package from src/ to internal/ and move src/main.go to cmd/eosio-api-healthcheck/main.go
This commit is contained in:
parent
c27abb5ed9
commit
6448aeb0f7
22 changed files with 19 additions and 17 deletions
4
Makefile
4
Makefile
|
|
@ -11,14 +11,12 @@ GOBUILDFLAGS = -v -ldflags='-v -s -w -X main.VersionString=$(PROGRAM_VERSION)'
|
|||
DPKG_BUILDPACKAGE = dpkg-buildpackage
|
||||
DPKG_BUILDPACKAGE_FLAGS = -b -uc
|
||||
|
||||
SOURCES=src/main.go src/server.go src/parse_request.go
|
||||
|
||||
.PHONY: all build/$(PROGRAM_NAME) clean package_debian
|
||||
all: build
|
||||
build: build/$(PROGRAM_NAME)
|
||||
|
||||
build/$(PROGRAM_NAME) : $(SOURCES)
|
||||
$(GO) build -o $@ $(GOBUILDFLAGS) $^
|
||||
$(GO) build -o $@ $(GOBUILDFLAGS) cmd/eosio-api-healtcheck/main.go
|
||||
|
||||
test:
|
||||
$(GO) test -v ./...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue