diff options
author | wl <wl> | 2006-12-08 21:22:07 +0000 |
---|---|---|
committer | wl <wl> | 2006-12-08 21:22:07 +0000 |
commit | dc3adb09736b2999e76bc8eb1e97e7ed3617be5c (patch) | |
tree | 74b8fc2fca0356c7d8b184fe792c1e14e48cfeba /Makefile.in | |
parent | 86d033d1702b461ea5324061f2fd7e53b7138c2a (diff) | |
download | groff-dc3adb09736b2999e76bc8eb1e97e7ed3617be5c.tar.gz |
During installation, create soft link from <version> to `current' in
<datadir>/groff.
* Makefile.comm (install): Renamed to...
(do_install): This.
(prefix_must_exist): Removed. Code moved to Makefile.in.
* Makefile.in (TARGETS): Remove `install'.
(install): New target which first creates the directory given by
--prefix, then calling `make' to do the installation, and finishing
with the creation of the soft link.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index a5026a7e..73f569dd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -521,10 +521,10 @@ MDEFINES= \ "man7ext=$(man7ext)" \ "manroot=$(manroot)" \ "mkinstalldirs=$(mkinstalldirs)" \ + "pnmtops_nosetpage=$(pnmtops_nosetpage)" \ "prefix=$(prefix)" \ "revision=$(revision)" \ "sys_tmac_prefix=$(sys_tmac_prefix)" \ - "pnmtops_nosetpage=$(pnmtops_nosetpage)" \ "systemtmacdir=$(systemtmacdir)" \ "tmac_an_prefix=$(tmac_an_prefix)" \ "tmac_m_prefix=$(tmac_m_prefix)" \ @@ -621,7 +621,7 @@ NOMAKEDIRS=\ DISTDIRS=\ $(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) \ $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS) -TARGETS=all install install_bin install_data clean distclean mostlyclean \ +TARGETS=all install_bin install_data clean distclean mostlyclean \ realclean extraclean distfiles TAGS depend uninstall_sub # This ENVSETUP gork is required by the DJGPP build on Windows 9X, @@ -782,6 +782,16 @@ Makefile.cfg: Makefile Makefile: Makefile.in $(SHELL) config.status +.PHONY: install +install: + -test -d $(DESTDIR)$(prefix) \ + || $(mkinstalldirs) $(DESTDIR)$(prefix) + @$(ENVSETUP); $(MAKE) $(MAKE_K_FLAG) $(MDEFINES) \ + do=do_install $(dodirs) + cd $(DESTDIR)$(dataprogramdir); \ + rm -f current; \ + $(LN_S) $(version)$(revision) current + .PHONY: uninstall uninstall: uninstall_sub uninstall_dirs |