head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	94.07.28.16.03.54;	author md;	state Exp;
branches;
next	1.1;

1.1
date	94.05.18.16.15.01;	author md;	state Exp;
branches;
next	;


desc
@@


1.2
log
@New make doesn't like a second rule for "all"
@
text
@PROG=	bison
SRCS=	LR0.c allocate.c closure.c conflicts.c derives.c files.c getargs.c \
	gram.c lalr.c lex.c main.c nullable.c output.c print.c reader.c \
	reduce.c symtab.c warshall.c version.c getopt.c getopt1.c
SRCS+=	alloca.c
CLEANFILES+=bison.s1

# names of parser files
PFILE=	bison.simple
PFILE1=	bison.hairy
LIBDIR=	/usr/contrib/lib

CFLAGS+=-DSTDC_HEADERS
CFLAGS+=-DHAVE_STRERROR
CFLAGS+=-DXPFILE=\"${LIBDIR}/${PFILE}\" \
	-DXPFILE1=\"${LIBDIR}/${PFILE1}\"

${PROG}:	bison.s1

afterinstall:
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m444 bison.s1 \
		${DESTDIR}${LIBDIR}/${PFILE}
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m444 ${.CURDIR}/${PFILE1} \
		${DESTDIR}${LIBDIR}

bison.s1: bison.simple
	-rm -f bison.s1
	sed -e "/^#line/ s|bison|${LIBDIR}/bison|" \
		< ${.CURDIR}/$(PFILE) > bison.s1

.include <bsd.prog.mk>
@


1.1
log
@Initial revision
@
text
@d18 1
a18 1
all:	bison.s1
@
