From 3215d6b4c80439d603de7cc3335f1b17e479468d Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 1 Dec 2010 12:23:47 +0200 Subject: [PATCH] More portable workaround for empty FLEX/BISON The $(or ) does not work on older gnu makes, $(if ) is more portable. Suggested by Peter Eisentraut --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 48029b4..30583a6 100644 --- a/Makefile +++ b/Makefile @@ -59,8 +59,8 @@ SHLIB_LINK += -lws2_32 -lpgport endif # PGXS may define them as empty -FLEX := $(or $(FLEX), flex) -BISON := $(or $(BISON), bison) +FLEX := $(if $(FLEX),$(FLEX),flex) +BISON := $(if $(BISON),$(BISON),bison) # parser rules src/scanner.o: src/parser.tab.h -- 2.39.5