diff options
Diffstat (limited to 'gnu/usr.bin/groff/troff/Makefile')
-rw-r--r-- | gnu/usr.bin/groff/troff/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/troff/Makefile b/gnu/usr.bin/groff/troff/Makefile new file mode 100644 index 000000000000..2de307ee96fc --- /dev/null +++ b/gnu/usr.bin/groff/troff/Makefile @@ -0,0 +1,38 @@ +# Makefile for troff + +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 +CXXFLAGS+= -I$(.CURDIR)/../include +LDADD+= $(LIBGROFF) -lm +DPADD+= $(LIBGROFF) $(LIBMATH) +tmacdir?= /usr/share/tmac + +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`\"\; >>$@ + +install_data: hyphen.us + -test -d $(datadir) || mkdir $(datadir) + -test -d $(datasubdir) || mkdir $(datasubdir) + -test -d $(tmacdir) || mkdir $(tmacdir) + -rm -f $(tmacdir)/hyphen.us + $(INSTALL_DATA) $(srcdir)/hyphen.us $(tmacdir)/hyphen.us + +uninstall_sub: + -rm -f $(tmacdir)/hyphen.us + +afterinstall: + install -c -o bin -g bin -m 444 $(.CURDIR)/hyphen.us \ + $(DESTDIR)$(tmacdir)/hyphen.us + +.include "../../../usr.bin/Makefile.inc" +.include "../Makefile.cfg" +.include <bsd.prog.mk> |