1995-01-16 00:59:34 +03:00
|
|
|
# $Id: Makefile,v 1.9 1995/01/15 21:59:34 jtc Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
PROG= troff
|
1993-07-15 20:40:48 +04:00
|
|
|
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)
|
|
|
|
|
|
|
|
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`\"\; >>$@
|
|
|
|
|
1993-07-16 02:05:14 +04:00
|
|
|
# XXX -- this depends on ../include/defs.h
|
|
|
|
TMACDIR=/usr/share/tmac
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
afterinstall:
|
1995-01-16 00:59:34 +03:00
|
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $(.CURDIR)/hyphen.us \
|
1993-07-16 02:05:14 +04:00
|
|
|
$(DESTDIR)$(TMACDIR)/hyphen.us
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-07-15 20:40:48 +04:00
|
|
|
.include "../../Makefile.inc"
|
|
|
|
.include "../Makefile.cfg"
|
1993-07-18 16:46:09 +04:00
|
|
|
.include <bsd.prog.mk>
|