summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/groff/troff/Makefile
blob: ca925ce60fbc094d805f037556bb89ac3ba5f065 (plain)
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
PROG=		troff
SRCS=		env.cc node.cc input.cc div.cc symbol.cc dictionary.cc reg.cc \
		number.cc majorminor.cc
CFLAGS+=	-I${.CURDIR}/../include
LDADD+=		${LIBGROFF} -lm
DPADD+=		${LIBGROFF} ${LIBMATH}
MANDEPEND=	troff.1

CLEANFILES+=	majorminor.cc ${MANDEPEND}

majorminor.cc: ${.CURDIR}/../VERSION
	@${ECHO} Making $@
	@-rm -f $@
	@echo const char \*major_version = \
	\"`sed -e 's/^\([^.]*\)\..*$$/\1/' ${.CURDIR}/../VERSION`\"\; >$@
	@echo const char \*minor_version = \
	\"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' ${.CURDIR}/../VERSION`\"\; >>$@

afterinstall:
	install -c -o bin -g bin -m 444 ${.CURDIR}/hyphen.us \
		${DESTDIR}${tmacdir}/hyphen.us

.include "../../../usr.bin/Makefile.inc"
.include "../Makefile.cfg"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud