From feea886ab3125a87cc28807d87759931687aac18 Mon Sep 17 00:00:00 2001 From: pst Date: Sun, 8 Sep 1996 01:27:58 +0000 Subject: ...long live groff --- gnu/usr.bin/groff/troff/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 gnu/usr.bin/groff/troff/Makefile (limited to 'gnu/usr.bin/groff/troff') diff --git a/gnu/usr.bin/groff/troff/Makefile b/gnu/usr.bin/groff/troff/Makefile new file mode 100644 index 0000000..5556380 --- /dev/null +++ b/gnu/usr.bin/groff/troff/Makefile @@ -0,0 +1,28 @@ +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: + ${INSTALL} -c -o bin -g bin -m 444 ${DISTDIR}/hyphen.us \ + ${DESTDIR}${tmacdir}/hyphen.us + ${INSTALL} -c -o bin -g bin -m 444 ${DISTDIR}/hyphen.us-ru \ + ${DESTDIR}${tmacdir}/hyphen.us-ru + +.include "../Makefile.cfg" +.include -- cgit v1.1