opnsense-src/gnu/usr.bin/bison/data/Makefile

25 lines
580 B
Makefile
Raw Normal View History

1999-08-27 19:37:10 -04:00
# $FreeBSD$
1996-09-10 09:23:46 -04:00
BISONDIR=${.CURDIR}/../../../../contrib/bison
.PATH: ${BISONDIR}
DATADIR= ${SHAREDIR}/misc
CLEANFILES+= bison.s1
all: bison.s1
# Copy bison.simple, inserting directory name into the #line commands.
bison.s1: bison.simple
sed -e "/^#line/ s|bison|${DATADIR}/bison|" \
1999-08-14 18:30:36 -04:00
-e "s|@bison_version@|1.28|" \
< ${.ALLSRC} > ${.TARGET}
1996-09-10 09:23:46 -04:00
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 bison.s1 \
${DESTDIR}${DATADIR}/bison.simple
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BISONDIR}/bison.hairy \
${DESTDIR}${DATADIR}
1996-09-10 09:23:46 -04:00
.include <bsd.prog.mk>