kcontrol/infocenter patch (2nd try)

Helge Deller deller at gmx.de
Wed Oct 30 22:40:18 GMT 2002


On Wednesday 30 October 2002 23:20, Helge Deller wrote:
> Running "make install" in kdebase/kcontrol/kcontrol produces currently the
> following "Error" if KDE hasn't been installed yet:
>
> rm: cannot remove `/opt/kde/bin/kinfocenter': No such file or directory
> make[4]: [install-data-local] Error 1 (ignored)
>
> The attached patch fixes this for me.
> Ok to commit ?
>
> Helge

Ok, the first patch was wrong and only copied the libtool helper file instead
of the symlink. This version should work correctly.

Ok ?

Helge

-------------- next part --------------
Index: Makefile.am
===================================================================
RCS file: /home/kde/kdebase/kcontrol/kcontrol/Makefile.am,v
retrieving revision 1.60
diff -u -p -r1.60 Makefile.am
--- Makefile.am	2002/09/20 19:49:08	1.60
+++ Makefile.am	2002/10/30 22:39:23
@@ -22,7 +22,7 @@ METASOURCES = AUTO
 
 SUBDIRS = . pics
 
-CLEANFILES = dummy.cpp
+CLEANFILES = dummy.cpp kinfocenter
 
 bin_PROGRAMS = kcontrol kcmshell kcminit
 lib_LTLIBRARIES = kcontrol.la kcmshell.la kcminit.la
@@ -67,11 +67,12 @@ rcinfo_DATA = kinfocenterui.rc
 data_DATA = KControl.desktop
 datadir = $(kde_appsdir)/Settingsmenu
 
-install-data-local: KControl_NoDisplay.desktop
+$(DESTDIR)$(kde_bindir)/kinfocenter:
+	$(LN_S) kcontrol $(DESTDIR)$(kde_bindir)/kinfocenter
+
+install-data-local: KControl_NoDisplay.desktop $(DESTDIR)$(kde_bindir)/kinfocenter
 	$(mkinstalldirs) $(DESTDIR)$(kde_appsdir)
 	$(INSTALL_DATA) $(srcdir)/KControl_NoDisplay.desktop $(DESTDIR)$(kde_appsdir)/KControl.desktop
-	@-rm $(DESTDIR)$(kde_bindir)/kinfocenter
-	@$(LN_S) kcontrol $(DESTDIR)$(kde_bindir)/kinfocenter
 	$(INSTALL_DATA) $(srcdir)/kinfocenter.desktop $(DESTDIR)$(kde_appsdir)/System/
 
 KDE_ICON=AUTO


More information about the kde-core-devel mailing list