summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/groff/troff
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-09-08 01:27:58 +0000
committerpst <pst@FreeBSD.org>1996-09-08 01:27:58 +0000
commitfeea886ab3125a87cc28807d87759931687aac18 (patch)
tree9f10d6854c5b1802bb9538b7dba03ff1fd865218 /gnu/usr.bin/groff/troff
parentcc80b2b6b69262a184c9dadaaa1c7bcaaec3ecce (diff)
downloadFreeBSD-src-feea886ab3125a87cc28807d87759931687aac18.zip
FreeBSD-src-feea886ab3125a87cc28807d87759931687aac18.tar.gz
...long live groff
Diffstat (limited to 'gnu/usr.bin/groff/troff')
-rw-r--r--gnu/usr.bin/groff/troff/Makefile28
1 files changed, 28 insertions, 0 deletions
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 <bsd.prog.mk>
OpenPOWER on IntegriCloud