1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

Make: create info file that contains the variable information. this file is then sourced by build.sh

This commit is contained in:
Henrik Hautakoski 2020-06-09 17:32:43 +02:00
parent 767508c4f0
commit 4536c09d5c
3 changed files with 15 additions and 7 deletions

View file

@ -19,12 +19,17 @@ build/$(PROGRAM_NAME) : $(SOURCES)
deps:
$(GO) get $(DEPENDANCIES)
package_deb: build
export PACKAGE_NAME="$(PROGRAM_NAME)" \
export PACKAGE_VERSION="0.3.1" \
export PACKAGE_PREFIX=$(PREFIX:/%=%) \
export PACKAGE_PROGRAM="build/$(PROGRAM_NAME)" \
&& ./scripts/build.sh deb
package_info : scripts/info
echo PACKAGE_NAME=\"$(PROGRAM_NAME)\" "\n"\
PACKAGE_DESCRIPTION=\"HAproxy healthcheck program for EOSIO API.\" "\n"\
PACKAGE_VERSION=\"0.3.1\" "\n"\
PACKAGE_PREFIX=\"$(PREFIX:/%=%)\" "\n"\
PACKAGE_PROGRAM=\"build/$(PROGRAM_NAME)\" > $<
package : package_info build
package_deb: package
./scripts/build.sh deb
clean:
$(GO) clean

1
scripts/.gitignore vendored
View file

@ -1,2 +1,3 @@
pack/
info
*.deb

View file

@ -7,7 +7,9 @@
export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Info
export PACKAGE_DESCRIPTION="HAproxy healthcheck program for EOSIO API."
set -o allexport
source ${BASE_DIR}/info
set +o allexport
# Directories.
export PACKAGE_BINDIR=${PACKAGE_PREFIX}/bin