blob: 843aebf78a885d0da90d473304255ba052b17fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $FreeBSD$
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|" \
-e "s|@bison_version@|1.28|" \
< ${.ALLSRC} > ${.TARGET}
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}
.include <bsd.prog.mk>
|