diff options
Diffstat (limited to 'troff/Makefile.sub')
-rw-r--r-- | troff/Makefile.sub | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/troff/Makefile.sub b/troff/Makefile.sub new file mode 100644 index 000000000..026338571 --- /dev/null +++ b/troff/Makefile.sub @@ -0,0 +1,26 @@ +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=env.cc node.cc input.cc div.cc symbol.cc dictionary.cc reg.cc \ + number.cc majorminor.cc +HDRS=charinfo.h dictionary.h div.h env.h hvunits.h node.h reg.h request.h \ + symbol.h token.h troff.h +GENSRCS=majorminor.cc +NAMEPREFIX=$(g) + +majorminor.cc: ../VERSION + @echo Making $@ + @-rm -f $@ + @echo const char \*major_version = \ + \"`sed -e 's/^\([^.]*\)\..*$$/\1/' $(srcdir)/../VERSION`\"\; >$@ + @echo const char \*minor_version = \ + \"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' $(srcdir)/../VERSION`\"\; >>$@ + +install_data: hyphen + -test -d $(datadir) || mkdir $(datadir) + -test -d $(datasubdir) || mkdir $(datasubdir) + -rm -f $(hyphenfile) + $(INSTALL_DATA) $(srcdir)/hyphen $(hyphenfile) |