aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2013-12-04 19:15:56 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2013-12-04 19:15:56 +0000
commitb63940c108110c78eeb1430a2b0f5b1a9c87e99c (patch)
treee5e0d447a3fe29a8b4d7ff704ad7caadd63d69f9
parent20fa47be09d8320d135a52112a016871a207047d (diff)
downloadsrc-b63940c108110c78eeb1430a2b0f5b1a9c87e99c.tar.gz
src-b63940c108110c78eeb1430a2b0f5b1a9c87e99c.zip
Add missing bits from the vendor's 2005-05-04 change to
contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
Notes
Notes: svn path=/head/; revision=258931
-rw-r--r--usr.bin/yacc/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/yacc/Makefile b/usr.bin/yacc/Makefile
index 677486fd7320..a5f0d1b78ba2 100644
--- a/usr.bin/yacc/Makefile
+++ b/usr.bin/yacc/Makefile
@@ -1,7 +1,8 @@
# @(#)Makefile 5.3 (Berkeley) 5/12/90
# $FreeBSD$
-.PATH: ${.CURDIR}/../../contrib/byacc
+BYACC_SRC= ${.CURDIR}/../../contrib/byacc
+.PATH: ${BYACC_SRC}
PROG= yacc
SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c output.c \
@@ -12,7 +13,10 @@ CFLAGS+= -DMIXEDCASE_FILENAMES=1 \
-DHAVE_FCNTL_H=1 \
-DHAVE_ATEXIT=1 \
-DHAVE_MKSTEMP=1
-
+
+YYPATCH!= cat ${BYACC_SRC}/VERSION
+CFLAGS+= -DYYPATCH=${YYPATCH}
+
LINKS= ${BINDIR}/yacc ${BINDIR}/byacc
MLINKS= yacc.1 byacc.1