From d1fcdbf64a601a1d01e156c65d8de0298092e9fa Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 11 Jan 2001 16:48:13 +0000 Subject: [PATCH] * edit/Makefile.in: Don't install or uninstall mcedit - it cannot be installed before mc on systems without symlinks. * gtkedit/Makefile.in: Likewise. * src/Makefile.in: Install mcedit (if enabled) and mcview. Uninstall them. --- ChangeLog | 8 +++++++- edit/Makefile.in | 3 +-- gtkedit/Makefile.in | 3 +-- src/Makefile.in | 19 +++++++++++++++++++ 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 97b33a420..651286774 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ 2001-01-11 Pavel Roskin - * macros/gnome-gettext.m4: Propagateg change by Owen Taylor + * edit/Makefile.in: Don't install or uninstall mcedit - + it cannot be installed before mc on systems without symlinks. + * gtkedit/Makefile.in: Likewise. + * src/Makefile.in: Install mcedit (if enabled) and mcview. + Uninstall them. + + * macros/gnome-gettext.m4: Propagated change by Owen Taylor from acinclude.m4 in gtk+: Don't define ENABLE_NLS unless we have a working NLS. (This should keep libintl.h from being included when it doesn't diff --git a/edit/Makefile.in b/edit/Makefile.in index 8baf71a41..b4eee808c 100644 --- a/edit/Makefile.in +++ b/edit/Makefile.in @@ -75,10 +75,9 @@ distclean: clean rm -f *~ rm -f Makefile -install: @MCEDIT@ +install: uninstall: - rm -f $(DESTDIR)$(bindir)/$(binprefix)mcedit distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) diff --git a/gtkedit/Makefile.in b/gtkedit/Makefile.in index cb724a958..99f4a11c6 100644 --- a/gtkedit/Makefile.in +++ b/gtkedit/Makefile.in @@ -68,10 +68,9 @@ distclean: clean rm -f *~ rm -f Makefile -install: @MCEDIT@ +install: uninstall: - rm -f $(DESTDIR)$(bindir)/$(binprefix)mcedit distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) diff --git a/src/Makefile.in b/src/Makefile.in index dc3c9837e..6527ea286 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -110,10 +110,27 @@ distclean: clean rm -f *~ rm -f Makefile +# +# Make sure to install mcview and mcedit after mc - important +# on systems without symlinks. +# install: mc mcmfmt @saver@ $(INSTALL_PROGRAM) mc $(DESTDIR)$(bindir)/$(binprefix)mc $(INSTALL_PROGRAM) mcmfmt $(DESTDIR)$(bindir)/$(binprefix)mcmfmt $(SEDCMD2) < $(srcdir)/mc.hlp > $(DESTDIR)$(mclibdir)/$(libprefix)mc.hlp + $(MAKE) install_mcview + $(MAKE) install_@MCEDIT@ + +install_: + +# +# Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'. +# +install_mcview: + cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview + +install_mcedit: + cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit install.saver: cons.saver $(INSTALL_PROGRAM) -m 4755 cons.saver $(DESTDIR)$(suppbindir)/cons.saver @@ -123,6 +140,8 @@ uninstall: rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcmfmt rm -f $(DESTDIR)$(suppbindir)/cons.saver rm -f $(DESTDIR)$(mclibdir)/$(libprefix)/mc.hlp + rm -f $(DESTDIR)$(bindir)/$(binprefix)mcedit + rm -f $(DESTDIR)$(bindir)/$(binprefix)mcview distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)