From fd5de54fa1df41dbb46b8869901541987cbdc427 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 26 Nov 2009 10:11:43 -0800 Subject: Not all systems have a yacc alias for the yacc program. txr is known to work with two yacc implementations: GNU Bison and Berkeley yacc. Let's add some auto-detection for yacc. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 30ffaa3f..e25df5db 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ # Test data in the tests/ directory is in the public domain, # unless it contains notices to the contrary. --include config.make +include config.make CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \ $(OPT_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS) @@ -115,3 +115,7 @@ conftest2: conftest1.c conftest2.c conftest.syms: conftest.o $(NM) -t o -P $^ > $@ + +.PHONY: conftest.yacc +conftest.yacc: + @echo $(YACC) -- cgit v1.2.3