summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-26 10:11:43 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-26 10:11:43 -0800
commitfd5de54fa1df41dbb46b8869901541987cbdc427 (patch)
treeab98efa6b7755e574e2c8d807c880d2e39fff9e8 /Makefile
parent2f8a289f854cb8c9f8640b67f5071024a7f6333b (diff)
downloadtxr-fd5de54fa1df41dbb46b8869901541987cbdc427.tar.gz
txr-fd5de54fa1df41dbb46b8869901541987cbdc427.tar.bz2
txr-fd5de54fa1df41dbb46b8869901541987cbdc427.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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)