diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-26 10:11:43 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-26 10:11:43 -0800 |
commit | fd5de54fa1df41dbb46b8869901541987cbdc427 (patch) | |
tree | ab98efa6b7755e574e2c8d807c880d2e39fff9e8 /Makefile | |
parent | 2f8a289f854cb8c9f8640b67f5071024a7f6333b (diff) | |
download | txr-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-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |