NetBSD/gnu/usr.bin/groff/troff/Makefile

28 lines
756 B
Makefile

# $NetBSD: Makefile,v 1.14 1997/10/25 10:12:32 lukem Exp $
PROG= troff
SRCS= env.cc node.cc input.cc div.cc symbol.cc dictionary.cc reg.cc \
number.cc majorminor.cc
CPPFLAGS+= -I$(.CURDIR)/../include
LDADD+= $(LIBGROFF) -lm
DPADD+= $(LIBGROFF) $(LIBM)
CLEANFILES+= majorminor.cc
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`\"\; >>$@
# XXX -- this depends on ../include/defs.h
TMACDIR=/usr/share/tmac
FILES=hyphen.us
FILESDIR=${TMACDIR}
.include "../../Makefile.inc"
.include "../Makefile.cfg"
.include <bsd.prog.mk>