mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-08-28 21:08:13 +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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue