summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-02 10:09:04 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-02 10:09:04 +0100
commit265c3269d328bcb481919649f7adf764fd59aa08 (patch)
treeea58846ac89b4874fb7c37032389e5aece96c377
parent0ed60782f8b7abc027d8c8927143b39a7436c106 (diff)
downloadnsgenbind-265c3269d328bcb481919649f7adf764fd59aa08.tar.gz
nsgenbind-265c3269d328bcb481919649f7adf764fd59aa08.tar.bz2
use core buildsystem tool variables for flex and bison
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index f160d42..972beb9 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,12 +7,12 @@ SOURCES := $(SOURCES) $(BUILDDIR)/nsgenbind-parser.c $(BUILDDIR)/nsgenbind-lexer
$(BUILDDIR)/%-lexer.c $(BUILDDIR)/%-lexer.h: src/%-lexer.l
$(VQ)$(ECHO) " FLEX: $<"
- $(Q)flex --outfile=$(BUILDDIR)/$(*F)-lexer.c --header-file=$(BUILDDIR)/$(*F)-lexer.h $<
+ $(Q)$(FLEX) --outfile=$(BUILDDIR)/$(*F)-lexer.c --header-file=$(BUILDDIR)/$(*F)-lexer.h $<
$(BUILDDIR)/%-lexer.c: $(BUILDDIR)/%-parser.h
# Bison 2.6 and later require api.prefix, but this breaks Bison 2.5 and earlier.
-bisonvsn := $(word 4,$(shell bison --version))
+bisonvsn := $(word 4,$(shell $(BISON) --version))
bisonmaj := $(word 1,$(subst ., ,$(bisonvsn)))
bisonmin := $(word 2,$(subst ., ,$(bisonvsn)))
ifeq ($(bisonmaj),1)
@@ -31,7 +31,7 @@ endif
$(BUILDDIR)/%-parser.c $(BUILDDIR)/%-parser.h: src/%-parser.y
$(VQ)$(ECHO) " BISON: $<"
- $(Q)bison -d -t $(BISON_DEFINES) --report=all --output=$(BUILDDIR)/$(*F)-parser.c --defines=$(BUILDDIR)/$(*F)-parser.h $<
+ $(Q)$(BISON) -d -t $(BISON_DEFINES) --report=all --output=$(BUILDDIR)/$(*F)-parser.c --defines=$(BUILDDIR)/$(*F)-parser.h $<
# Grab the core makefile
include $(NSBUILD)/Makefile.subdir