head	1.17;
access;
symbols
	RELENG_4_11_0_RELEASE:1.12.2.4
	RELENG_4_11:1.12.2.4.0.16
	RELENG_4_11_BP:1.12.2.4
	RELENG_4_10_0_RELEASE:1.12.2.4
	RELENG_4_10:1.12.2.4.0.14
	RELENG_4_10_BP:1.12.2.4
	RELENG_4_9_0_RELEASE:1.12.2.4
	RELENG_4_9:1.12.2.4.0.12
	RELENG_4_9_BP:1.12.2.4
	RELENG_4_8_0_RELEASE:1.12.2.4
	RELENG_4_8:1.12.2.4.0.10
	RELENG_4_8_BP:1.12.2.4
	RELENG_4_7_0_RELEASE:1.12.2.4
	RELENG_4_7:1.12.2.4.0.8
	RELENG_4_7_BP:1.12.2.4
	RELENG_4_6_2_RELEASE:1.12.2.4
	RELENG_4_6_1_RELEASE:1.12.2.4
	RELENG_4_6_0_RELEASE:1.12.2.4
	RELENG_4_6:1.12.2.4.0.6
	RELENG_4_6_BP:1.12.2.4
	RELENG_4_5_0_RELEASE:1.12.2.4
	RELENG_4_5:1.12.2.4.0.4
	RELENG_4_5_BP:1.12.2.4
	RELENG_4_4_0_RELEASE:1.12.2.4
	RELENG_4_4:1.12.2.4.0.2
	RELENG_4_4_BP:1.12.2.4
	RELENG_4_3_0_RELEASE:1.12.2.1
	RELENG_4_3:1.12.2.1.0.2
	RELENG_4_3_BP:1.12.2.1
	RELENG_4_2_0_RELEASE:1.12
	RELENG_4_1_1_RELEASE:1.12
	PRE_SMPNG:1.12
	RELENG_4_1_0_RELEASE:1.12
	RELENG_3_5_0_RELEASE:1.11.2.1
	RELENG_4_0_0_RELEASE:1.12
	RELENG_4:1.12.0.2
	RELENG_4_BP:1.12
	RELENG_3_4_0_RELEASE:1.11.2.1
	RELENG_3_3_0_RELEASE:1.11.2.1
	RELENG_3_2_PAO:1.11.0.4
	RELENG_3_2_PAO_BP:1.11
	RELENG_3_2_0_RELEASE:1.11
	RELENG_3_1_0_RELEASE:1.11
	RELENG_3:1.11.0.2
	RELENG_3_BP:1.11
	RELENG_2_2_8_RELEASE:1.6.2.2
	RELENG_3_0_0_RELEASE:1.11
	RELENG_2_2_7_RELEASE:1.6.2.2
	RELENG_2_2_6_RELEASE:1.6.2.1
	RELENG_2_2_5_RELEASE:1.6
	RELENG_2_2_2_RELEASE:1.6
	RELENG_2_2_1_RELEASE:1.6
	RELENG_2_2_0_RELEASE:1.6
	RELENG_2_1_7_RELEASE:1.3
	RELENG_2_1_6_1_RELEASE:1.3
	RELENG_2_1_6_RELEASE:1.3
	RELENG_2_2:1.6.0.2
	RELENG_2_2_BP:1.6
	v1_10:1.1.1.1
	PST:1.1.1
	RELENG_2_1_5_RELEASE:1.3
	RELENG_2_1_0_RELEASE:1.3
	RELENG_2_1_0:1.3.0.4
	RELENG_2_1_0_BP:1.3
	RELENG_2_0_5_RELEASE:1.3
	RELENG_2_0_5:1.3.0.2
	RELENG_2_0_5_BP:1.3
	RELENG_2_0_5_ALPHA:1.2;
locks; strict;
comment	@# @;


1.17
date	2001.04.17.12.36.42;	author ru;	state dead;
branches;
next	1.16;

1.16
date	2001.04.07.11.21.16;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	2001.03.27.14.58.42;	author ru;	state Exp;
branches;
next	1.14;

1.14
date	2000.12.05.19.15.26;	author ru;	state Exp;
branches;
next	1.13;

1.13
date	2000.12.01.09.39.24;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	99.08.27.23.35.43;	author peter;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	98.04.19.13.25.54;	author bde;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	98.03.20.12.03.53;	author bde;	state Exp;
branches;
next	1.9;

1.9
date	97.09.15.01.56.29;	author ache;	state Exp;
branches;
next	1.8;

1.8
date	97.09.14.23.43.22;	author wosch;	state Exp;
branches;
next	1.7;

1.7
date	97.01.01.04.20.18;	author bde;	state Exp;
branches;
next	1.6;

1.6
date	96.09.09.18.05.22;	author phk;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	96.09.08.01.27.31;	author pst;	state Exp;
branches;
next	1.4;

1.4
date	96.09.08.01.04.17;	author pst;	state dead;
branches;
next	1.3;

1.3
date	95.05.30.04.59.23;	author rgrimes;	state Exp;
branches;
next	1.2;

1.2
date	95.01.15.09.05.41;	author pst;	state Exp;
branches;
next	1.1;

1.1
date	95.01.15.08.29.37;	author pst;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.09.08.01.23.20;	author pst;	state Exp;
branches;
next	;

1.6.2.1
date	98.03.03.06.37.06;	author jkh;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	98.04.20.15.04.36;	author bde;	state Exp;
branches;
next	1.6.2.3;

1.6.2.3
date	99.09.05.11.06.35;	author peter;	state Exp;
branches;
next	;

1.11.2.1
date	99.08.29.14.33.16;	author peter;	state Exp;
branches;
next	;

1.12.2.1
date	2000.12.07.09.57.02;	author ru;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2001.04.25.12.03.36;	author ru;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2001.04.25.14.04.09;	author ru;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2001.04.26.17.08.01;	author ru;	state dead;
branches;
next	;


desc
@@


1.17
log
@Upgrade to Groff 1.17.
@
text
@# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.16 2001/04/07 11:21:16 ru Exp $

PROG=		eqn
SRCS=		eqn.cc eqn_tab.h main.cc lex.cc \
		box.cc limit.cc list.cc over.cc text.cc \
		script.cc mark.cc other.cc delim.cc sqrt.cc pile.cc special.cc
DPADD=		${LIBGROFF}
LDADD=		${LIBGROFF}
SCRIPTS=	neqn
MAN=		eqn.1 neqn.1
CLEANFILES=	eqn.cc eqn_tab.h ${MAN} ${SCRIPTS} y.tab.c y.tab.h

neqn: neqn.sh
	sed -e 's/@@g@@/${g}/g' ${.ALLSRC} > ${.TARGET}

eqn_tab.h: eqn.cc

.include "../Makefile.cfg"
.include <bsd.prog.mk>

INCLUDES+=	-I${DIST_DIR} -I.
@


1.16
log
@beforeinstall -> SCRIPTS.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.15 2001/03/27 14:58:42 ru Exp $
@


1.15
log
@MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.14 2000/12/05 19:15:26 ru Exp $
d9 1
d11 1
a11 1
CLEANFILES=	eqn.cc eqn_tab.h ${MAN} neqn y.tab.c y.tab.h
d13 2
a14 5
all: neqn

beforeinstall:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} neqn \
	    ${DESTDIR}${BINDIR}
a21 3

neqn: ${DIST_DIR}/neqn.sh
	sed -e 's/@@g@@/${g}/g' ${.ALLSRC} > ${.TARGET}
@


1.14
log
@Upgrade to version 1.16.1.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.13 2000/12/01 09:39:24 obrien Exp $
d9 2
a10 2
MAN1=		eqn.1 neqn.1
CLEANFILES=	eqn.cc eqn_tab.h ${MAN1} neqn y.tab.c y.tab.h
@


1.13
log
@The GCC 2.96 snapshots have slightly different rules for finding include
files.  Mostly -I${.CURDIR} was needed -- especially for YACC generated
files as the new cpp does not look in the ultimate source file
(ie, the .y file)'s directory as told by the "#line" directive.  Some were
misspellings of "-I${.CURDIR}" as "-I.".
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.12 1999/08/27 23:35:43 peter Exp $
d4 1
a4 1
SRCS=		eqn.cc eqn.tab.h main.cc lex.cc \
d10 1
a10 1
CLEANFILES=	eqn.cc eqn.tab.h ${MAN1} neqn y.tab.c y.tab.h
d18 1
a18 1
eqn.tab.h: eqn.cc
@


1.12
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
a6 1
CFLAGS+=	-I.
d22 2
@


1.12.2.1
log
@MFC: Upgrade to Groff 1.16.1.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.12 1999/08/27 23:35:43 peter Exp $
d4 1
a4 1
SRCS=		eqn.cc eqn_tab.h main.cc lex.cc \
d7 1
d11 1
a11 1
CLEANFILES=	eqn.cc eqn_tab.h ${MAN1} neqn y.tab.c y.tab.h
d19 1
a19 1
eqn_tab.h: eqn.cc
a22 2

INCLUDES+=	-I${DIST_DIR} -I.
@


1.12.2.2
log
@MFC: MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.12.2.1 2000/12/07 09:57:02 ru Exp $
d9 2
a10 2
MAN=		eqn.1 neqn.1
CLEANFILES=	eqn.cc eqn_tab.h ${MAN} neqn y.tab.c y.tab.h
@


1.12.2.3
log
@MFC: Introduce and use SCRIPTS knob.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.12.2.2 2001/04/25 12:03:36 ru Exp $
a8 1
SCRIPTS=	neqn
d10 1
a10 1
CLEANFILES=	eqn.cc eqn_tab.h ${MAN} ${SCRIPTS} y.tab.c y.tab.h
d12 5
a16 2
neqn: neqn.sh
	sed -e 's/@@g@@/${g}/g' ${.ALLSRC} > ${.TARGET}
d24 3
@


1.12.2.4
log
@MFC: Upgrade to Groff 1.17.
@
text
@d1 1
a1 1
# $FreeBSD: src/gnu/usr.bin/groff/eqn/Makefile,v 1.12.2.3 2001/04/25 14:04:09 ru Exp $
@


1.11
log
@Never generate neqn at install time (the previous fix for this was
incomplete).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.10 1998/03/20 12:03:53 bde Exp $
@


1.11.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.10
log
@Don't use beforedepend to complicate and break things.  Just put
generated source files in SRCS.

Don't use MANDEPEND to complicate things.  Just set MAN1 and put
generated man pages in CLEANFILES.

Added temporary files to CLEANFILES.

Partly fixed a potentially fatal bug involving the yacc header.
We generate eqn.cc (even if there is a version of it in the source
directory older than eqn.y) and a matching eqn.tab.h, but only use
the possibly-non-matching eqn.tab.h in the source directory.  This
works because Cygnus's yacc happened to generate a y.tab.h identical
to the current generated one.  The correct version will be used
when the wrong version is deleted from the source tree.  Kludge to
get the header generated early enough.  Yacc headers are mishandled
everywhere they are renamed (and used).

Generate neqn at build time, not at install time.

Fixed some style bugs.
@
text
@d1 1
a1 1
#	$Id$
d15 1
a15 1
beforeinstall: neqn
@


1.9
log
@Fix neqn building:
1) Move it after Makefile.inc included since it uses DIST_DIR from there
2) Add neqn.sh dependance
@
text
@d1 1
a1 1
# Makefile for eqn
d4 6
d11 1
a11 6
SRCS=		main.cc lex.cc  box.cc limit.cc list.cc over.cc text.cc\
		script.cc mark.cc other.cc delim.cc sqrt.cc pile.cc special.cc
OBJS=		eqn.o
#CFLAGS+=	-I. -I${.CURDIR}/../include
LDADD+=		${LIBGROFF}
DPADD+=		${LIBGROFF}
d13 1
a13 2
MANDEPEND=	neqn.1 eqn.1
CLEANFILES+=	eqn.cc eqn.tab.h neqn ${MANDEPEND}
d15 1
a15 1
afterinstall:	neqn
d17 1
a17 1
		${DESTDIR}${BINDIR}
d19 1
a19 1
beforedepend: eqn.cc
d24 2
a25 3
neqn:   ${DIST_DIR}/neqn.sh
	sed -e 's/@@g@@/${g}/g' ${DIST_DIR}/neqn.sh > neqn

@


1.8
log
@Add a simple manpage.
@
text
@a14 3
neqn:
	sed -e 's/@@g@@/${g}/g' ${DIST_DIR}/neqn.sh > neqn

d23 4
@


1.7
log
@Use ${COPY} instead of -c for installing non-source files.
@
text
@d4 1
d12 1
a12 1
MANDEPEND=	eqn.1
@


1.6
log
@DISTDIR is a reserved variable for make release
s/DISTDIR/DIST_DIR/g
@
text
@d18 1
a18 1
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} neqn \
@


1.6.2.1
log
@MFC: install new man pages and use canonical permissions.
@
text
@a3 1
MAN1=		eqn.1 neqn.1
d11 1
a11 1
MANDEPEND=	neqn.1 eqn.1
d14 3
d18 1
a18 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} neqn \
a24 4

neqn:   ${DIST_DIR}/neqn.sh
	sed -e 's/@@g@@/${g}/g' ${DIST_DIR}/neqn.sh > neqn

@


1.6.2.2
log
@YAMFC (1.10-1.11: don't generate neqn at install time, etc.)

Submitted by:	Arne Henrik Juul <arnej@@stud.math.ntnu.no>
PR:		6330
@
text
@d1 1
a1 1
#	$Id$
d4 2
a5 2
SRCS=		eqn.cc eqn.tab.h main.cc lex.cc \
		box.cc limit.cc list.cc over.cc text.cc \
d7 4
a10 5
CFLAGS+=	-I.
DPADD=		${LIBGROFF}
LDADD=		${LIBGROFF}
MAN1=		eqn.1 neqn.1
CLEANFILES=	eqn.cc eqn.tab.h ${MAN1} neqn y.tab.c y.tab.h
d12 2
a13 1
all: neqn
d15 1
a15 1
beforeinstall:
d17 1
a17 1
	    ${DESTDIR}${BINDIR}
d19 1
a19 1
eqn.tab.h: eqn.cc
d24 3
a26 2
neqn: ${DIST_DIR}/neqn.sh
	sed -e 's/@@g@@/${g}/g' ${.ALLSRC} > ${.TARGET}
@


1.6.2.3
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.5
log
@...long live groff
@
text
@d15 1
a15 1
	sed -e 's/@@g@@/${g}/g' ${DISTDIR}/neqn.sh > neqn
@


1.4
log
@Groff is dead...
@
text
@d7 1
a7 1
CFLAGS+=	-I. -I${.CURDIR}/../include
d12 1
a12 1
CLEANFILES+=	eqn.cc eqn.tab.h ${MANDEPEND}
d14 6
a19 4
afterinstall:
	sed -e 's/@@g@@/${g}/g' ${.CURDIR}/neqn.sh > ${DESTDIR}${BINDIR}/neqn
	chown ${BINOWN}.${BINGRP} ${DESTDIR}${BINDIR}/neqn
	chmod ${BINMODE} ${DESTDIR}${BINDIR}/neqn
@


1.3
log
@Remove trailing whitespace.
@
text
@@


1.2
log
@Last of the FreeBSD changes
@
text
@d6 1
a6 1
OBJS=		eqn.o 
@


1.1
log
@Layer in all FreeBSD patches
@
text
@a20 1
.include "../../../usr.bin/Makefile.inc"
@


1.1.1.1
log
@...long live groff
@
text
@d6 2
a7 2
OBJS=		eqn.o
#CFLAGS+=	-I. -I${.CURDIR}/../include
d12 1
a12 1
CLEANFILES+=	eqn.cc eqn.tab.h neqn ${MANDEPEND}
d14 4
a17 6
neqn:
	sed -e 's/@@g@@/${g}/g' ${DISTDIR}/neqn.sh > neqn

afterinstall:	neqn
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} neqn \
		${DESTDIR}${BINDIR}
d21 1
@
