0426565f90
Reviewed-by: joerg
24 lines
598 B
Makefile
24 lines
598 B
Makefile
# $Id: Makefile,v 1.5 1997/02/22 15:44:44 peter 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 ${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>
|