Skip to content

Commit ae91f4f

Browse files
authored
Refactor Bison installation in Makefile
Updated Bison download URL to use a variable for versioning.
1 parent 8a7ce38 commit ae91f4f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
22
SOURCEDIRS=$(ROOT_DIR)/syslog_ng_cfg_helper $(ROOT_DIR)/tests
33

44
BISON_INSTALL_PATH := /usr/local
5+
BISON_VERSION := 3.7.6
6+
# the "official" gnu source - https://ftp.gnu.org/gnu/bison//bison-${BISON_VERSION}.tar.gz - fails more and more, use our mirror
7+
BISON_DNLD_URL := https://github.com/syslog-ng/syslog-ng-deps/raw/refs/heads/main/bison/$(BISON_VERSION)/bison.tar.gz
8+
59

610
SYSLOG_NG_VERSION := 4.8.1
711
SYSLOG_NG_RELEASE_URL := https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-$(SYSLOG_NG_VERSION)
@@ -13,11 +17,7 @@ SYSLOG_NG_WORKING_DIR := $(WORKING_DIR)/syslog-ng-source
1317
SYSLOG_NG_TARBALL := $(WORKING_DIR)/syslog-ng.tar.gz
1418

1519
bison:
16-
BISON_VERSION=3.7.6
17-
# the "official" gnu source - https://ftp.gnu.org/gnu/bison//bison-${BISON_VERSION}.tar.gz - fails more and more, use our mirror
18-
URL=https://github.com/syslog-ng/syslog-ng-deps/raw/refs/heads/main/bison/$(BISON_VERSION)/bison.tar.gz
19-
20-
wget $(URL) -O /tmp/bison.tar.gz
20+
wget $(BISON_DNLD_URL) -O /tmp/bison.tar.gz
2121
tar -xzf /tmp/bison.tar.gz -C /tmp
2222
cd /tmp/bison-$(BISON_VERSION) && ./configure --prefix=$(BISON_INSTALL_PATH) --disable-nls && make -j && make install
2323

0 commit comments

Comments
 (0)