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:
parent
767508c4f0
commit
4536c09d5c
3 changed files with 15 additions and 7 deletions
17
Makefile
17
Makefile
|
|
@ -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
1
scripts/.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
pack/
|
||||
info
|
||||
*.deb
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue