summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/bison/data/Makefile
blob: 4f80a4e834710ea4c84b991e268cd34ccdf18ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $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|" \
		< ${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>
OpenPOWER on IntegriCloud