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