aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/eqn/Makefile
blob: c7773ccd95a2c1d2818ac09bce03680bbc9776ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Makefile for eqn

PROG=		eqn
MAN1=		eqn.1 neqn.1
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}

MANDEPEND=	neqn.1 eqn.1
CLEANFILES+=	eqn.cc eqn.tab.h neqn ${MANDEPEND}

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

beforedepend: eqn.cc

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

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