summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/bison/data/Makefile
blob: e1957401295837d2bd7c4c5b0ce0cda31a66da25 (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: Makefile,v 1.2 1996/10/27 21:50:59 joerg Exp $

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