Author: rodrigc
Date: Sat Oct 11 23:02:03 2014
New Revision: 272970
URL: https://svnweb.freebsd.org/changeset/base/272970

Log:
  Merge: r258931
  
  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

Modified:
  stable/10/usr.bin/yacc/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/yacc/Makefile
==============================================================================
--- stable/10/usr.bin/yacc/Makefile     Sat Oct 11 22:13:24 2014        
(r272969)
+++ stable/10/usr.bin/yacc/Makefile     Sat Oct 11 23:02:03 2014        
(r272970)
@@ -3,7 +3,8 @@
 
 .include <bsd.own.mk>
 
-.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 mstring.c 
output.c \
@@ -12,7 +13,10 @@ SRCS=        closure.c error.c graph.c lalr.c l
 CFLAGS+=       -DMIXEDCASE_FILENAMES=1 \
                -DHAVE_FCNTL_H=1 \
                -DHAVE_MKSTEMP=1
-               
+
+YYPATCH!=      cat ${BYACC_SRC}/VERSION
+CFLAGS+=       -DYYPATCH=${YYPATCH}
+
 LINKS= ${BINDIR}/yacc ${BINDIR}/byacc
 MLINKS=        yacc.1 byacc.1
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to