freebsd-dev/gnu/usr.bin/bison/data/Makefile
1999-08-27 23:37:10 +00:00

25 lines
580 B
Makefile

# $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>