blob: c64cbfc8df09caaea07374a7d5e3d322d314f2d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $Id$
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|" \
< ${BISONDIR}/bison.simple > bison.s1
install:
${INSTALL} ${COPY} -o bin -g bin -m 444 bison.s1 \
${DESTDIR}${DATADIR}/bison.simple
${INSTALL} -c -o bin -g bin -m 444 ${BISONDIR}/bison.hairy \
${DESTDIR}${DATADIR}
.include <bsd.prog.mk>
|