diff options
author | wlemb <wlemb> | 2000-11-08 16:17:34 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2000-11-08 16:17:34 +0000 |
commit | 0053cfb4ddac6e7cb805fc1ff921dfa2874aa167 (patch) | |
tree | 60b76f768cc7b6c7c286c554726dc8acc8594aff /Makefile.in | |
parent | de53a3cd17c746ea6d29ad82adc814ffae66b25c (diff) | |
download | groff-0053cfb4ddac6e7cb805fc1ff921dfa2874aa167.tar.gz |
Add system tmac directory (/usr/local/lib/groff/site-tmac).
* Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
(uninstall_dirs): Add $(libdir), $(libprogramdir), and
$(systemtmacdir).
Use @libdir@.
* Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
* tmac/Makefile.sub (install_data): Create
$(systemtmacdir) and $(localtmacdir).
(uninstall_sub): Use $(systemtmacdir) for wrapper macros.
* man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
NEWS, doc/groff.texinfo: Updated and minor fixes.
* Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
* tmac/Makefile.sub: Added `wrap' stuff again, but installing into
$(systemtmacdir) since the wrapper files are platform-dependent.
* doc/groff.texinfo: Fix typo.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in index 03ef5e0d..61690796 100644 --- a/Makefile.in +++ b/Makefile.in @@ -80,13 +80,16 @@ g=@g@ # Used in definitions of exec_prefix, datasubdir, fontpath, manroot. # This must already exist when you do make install. prefix=@prefix@ - exec_prefix=@exec_prefix@ # bindir says where to install executables. -bindir=$(exec_prefix)/bin +bindir=@bindir@ + +# libdir says where to install platform-dependent data +libdir=@libdir@ +libprogramdir=$(libdir)/groff -# datasubdir says where to install data files +# datasubdir says where to install platform-independent data files datadir=@datadir@ dataprogramdir=$(datadir)/groff datasubdir=$(dataprogramdir)/$(version)$(revision) @@ -100,11 +103,14 @@ fontpath=.:$(fontdir):/usr/lib/font # tmacdir says where to install macros. tmacdir=$(datasubdir)/tmac +# systemtmacdir says where to install platform-dependent macros +systemtmacdir=$(libprogramdir)/site-tmac + # localtmacdir says where local files will be installed localtmacdir=$(dataprogramdir)/site-tmac # tmacpath says where to look for macro files. -tmacpath=.:$(localtmacdir):$(tmacdir) +tmacpath=.:$(systemtmacdir):$(localtmacdir):$(tmacdir) # sys_tmac_prefix is prefix (if any) for system macro packages sys_tmac_prefix=@sys_tmac_prefix@ @@ -123,6 +129,12 @@ tmac_prefix=g # The groff -mm macros will be available as -m$(tmac_m_prefix)m. tmac_m_prefix=\ `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done` +# The groff -ms macros will be available as -m$(tmac_s_prefix)s. +tmac_s_prefix=\ + `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done` +# The groff -man macros will be available as -m$(tmac_an_prefix)an. +tmac_an_prefix=\ + `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done` # Extension to be used for refer index files. Index files are not # sharable between different architectures, so you might want to use @@ -259,10 +271,13 @@ MDEFINES= \ "datadir=$(datadir)" \ "dataprogramdir=$(dataprogramdir)" \ "datasubdir=$(datasubdir)" \ + "libdir=$(libdir)" \ + "libprogramdir=$(libprogramdir)" \ "bindir=$(bindir)" \ "fontdir=$(fontdir)" \ "fontpath=$(fontpath)" \ "tmacdir=$(tmacdir)" \ + "systemtmacdir=$(systemtmacdir)" \ "localtmacdir=$(localtmacdir)" \ "tmacpath=$(tmacpath)" \ "indexext=$(indexext)" \ @@ -279,6 +294,8 @@ MDEFINES= \ "mkinstalldirs=$(mkinstalldirs)" \ "tmac_wrap=$(tmac_wrap)" \ "sys_tmac_prefix=$(sys_tmac_prefix)" \ + "tmac_an_prefix=$(tmac_an_prefix)" \ + "tmac_s_prefix=$(tmac_s_prefix)" \ "tmac_m_prefix=$(tmac_m_prefix)" \ "CCC=$(CCC)" \ "CC=$(CC)" \ @@ -519,8 +536,9 @@ uninstall: uninstall_sub uninstall_dirs uninstall_dirs: # Use rmdir here so that the directories are only removed if they're empty -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \ - $(tmacdir) $(localtmacdir) $(fontdir) $(bindir) \ - $(datasubdir) $(dataprogramdir) $(datadir) + $(tmacdir) $(systemtmacdir) $(localtmacdir) $(fontdir) $(bindir) \ + $(datasubdir) $(dataprogramdir) $(datadir) \ + $(libprogramdir) $(libdir) .PHONY: check |