diff options
Diffstat (limited to 'src/roff/troff/Makefile.sub')
-rw-r--r-- | src/roff/troff/Makefile.sub | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/roff/troff/Makefile.sub b/src/roff/troff/Makefile.sub new file mode 100644 index 00000000..342ad595 --- /dev/null +++ b/src/roff/troff/Makefile.sub @@ -0,0 +1,57 @@ +PROG=troff +MAN1=troff.n +XLIBS=$(LIBGROFF) +MLIB=$(LIBM) +OBJS=\ + env.o \ + node.o \ + input.o \ + div.o \ + symbol.o \ + dictionary.o \ + reg.o \ + number.o \ + majorminor.o +CCSRCS=\ + $(srcdir)/env.cc \ + $(srcdir)/node.cc \ + $(srcdir)/input.cc \ + $(srcdir)/div.cc \ + $(srcdir)/symbol.cc \ + $(srcdir)/dictionary.cc \ + $(srcdir)/reg.cc \ + $(srcdir)/number.cc \ + majorminor.cc +HDRS=\ + $(srcdir)/charinfo.h \ + $(srcdir)/dictionary.h \ + $(srcdir)/div.h \ + $(srcdir)/env.h \ + $(srcdir)/hvunits.h \ + $(srcdir)/node.h \ + $(srcdir)/reg.h \ + $(srcdir)/request.h \ + $(srcdir)/symbol.h \ + $(srcdir)/token.h \ + $(srcdir)/troff.h +GENSRCS=majorminor.cc +NAMEPREFIX=$(g) + +majorminor.cc: $(top_srcdir)/VERSION $(top_srcdir)/REVISION + @echo Making $@ + @-rm -f $@ + @echo const char \*major_version = \ + \"`sed -e 's/^\([^.]*\)\..*$$/\1/' $(top_srcdir)/VERSION`\"\; >$@ + @echo const char \*minor_version = \ + \"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' $(top_srcdir)/VERSION`\"\; >>$@ + @echo const char \*revision = \"`cat $(top_srcdir)/REVISION`\"\; >>$@ + +install_data: hyphen.us + -test -d $(datadir) || $(mkinstalldirs) $(datadir) + -test -d $(datasubdir) || $(mkinstalldirs) $(datasubdir) + -test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir) + -rm -f $(tmacdir)/hyphen.us + $(INSTALL_DATA) $(srcdir)/hyphen.us $(tmacdir)/hyphen.us + +uninstall_sub: + -rm -f $(tmacdir)/hyphen.us |