freebsd-dev/gnu/usr.bin/groff/troff/Makefile

31 lines
862 B
Makefile
Raw Normal View History

1997-08-23 05:26:32 +00:00
# $Id$
1996-09-08 01:27:58 +00:00
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} ${LIBM}
MANDEPEND= troff.1
CLEANFILES+= majorminor.cc ${MANDEPEND}
.include "../Makefile.inc"
majorminor.cc: ${GROFF_DIST}/VERSION
@${ECHO} Making $@
@-rm -f $@
@echo const char \*major_version = \
\"`sed -e 's/^\([^.]*\)\..*$$/\1/' ${GROFF_DIST}/VERSION`\"\; >$@
@echo const char \*minor_version = \
\"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' ${GROFF_DIST}/VERSION`\"\; >>$@
afterinstall:
1997-08-23 05:26:32 +00:00
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DIST_DIR}/hyphen.us \
1996-09-08 01:27:58 +00:00
${DESTDIR}${tmacdir}/hyphen.us
1997-08-23 05:26:32 +00:00
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${DIST_DIR}/hyphen.us-ru ${DESTDIR}${tmacdir}/hyphen.us-ru
1996-09-08 01:27:58 +00:00
.include "../Makefile.cfg"
.include <bsd.prog.mk>