mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-02 11:43:42 +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:
|
deps:
|
||||||
$(GO) get $(DEPENDANCIES)
|
$(GO) get $(DEPENDANCIES)
|
||||||
|
|
||||||
package_deb: build
|
package_info : scripts/info
|
||||||
export PACKAGE_NAME="$(PROGRAM_NAME)" \
|
echo PACKAGE_NAME=\"$(PROGRAM_NAME)\" "\n"\
|
||||||
export PACKAGE_VERSION="0.3.1" \
|
PACKAGE_DESCRIPTION=\"HAproxy healthcheck program for EOSIO API.\" "\n"\
|
||||||
export PACKAGE_PREFIX=$(PREFIX:/%=%) \
|
PACKAGE_VERSION=\"0.3.1\" "\n"\
|
||||||
export PACKAGE_PROGRAM="build/$(PROGRAM_NAME)" \
|
PACKAGE_PREFIX=\"$(PREFIX:/%=%)\" "\n"\
|
||||||
&& ./scripts/build.sh deb
|
PACKAGE_PROGRAM=\"build/$(PROGRAM_NAME)\" > $<
|
||||||
|
|
||||||
|
package : package_info build
|
||||||
|
|
||||||
|
package_deb: package
|
||||||
|
./scripts/build.sh deb
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(GO) clean
|
$(GO) clean
|
||||||
|
|
|
||||||
1
scripts/.gitignore
vendored
1
scripts/.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
pack/
|
pack/
|
||||||
|
info
|
||||||
*.deb
|
*.deb
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,9 @@
|
||||||
export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
# Info
|
# Info
|
||||||
export PACKAGE_DESCRIPTION="HAproxy healthcheck program for EOSIO API."
|
set -o allexport
|
||||||
|
source ${BASE_DIR}/info
|
||||||
|
set +o allexport
|
||||||
|
|
||||||
# Directories.
|
# Directories.
|
||||||
export PACKAGE_BINDIR=${PACKAGE_PREFIX}/bin
|
export PACKAGE_BINDIR=${PACKAGE_PREFIX}/bin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue