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

29 lines
827 B
Makefile

# $Id: Makefile,v 1.10 1995/10/26 00:59:18 jtc Exp $
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)
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
afterinstall:
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $(.CURDIR)/hyphen.us \
$(DESTDIR)$(TMACDIR)/hyphen.us
.include "../../Makefile.inc"
.include "../Makefile.cfg"
.include <bsd.prog.mk>