From dc3adb09736b2999e76bc8eb1e97e7ed3617be5c Mon Sep 17 00:00:00 2001 From: wl Date: Fri, 8 Dec 2006 21:22:07 +0000 Subject: During installation, create soft link from to `current' in /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. --- Makefile.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile.in') 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 -- cgit v1.2.1