From ab72548671ac02232e352bf73abcdc20d9605e0a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 9 Jan 2012 13:43:07 +0100 Subject: [PATCH] Makefile: add WITHKDE3TOOLS input variable to allow installation of kde3 tools without other kde3 stuff (WITHKDE3=0) --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 265533a..01aa43a 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ PACKAGE = desktop-base-openmamba DISTROID = openmamba WITHKDE3 := 1 +WITHKDE3TOOLS := 1 RPM_VENDOR = openmamba RPM_DISTRIBUTION = openmamba @@ -218,7 +219,7 @@ install-icons: $(INSTALL_DIR) $(DESTDIR)$(iconsdir)/$$i/apps/; \ $(INSTALL_DATA) mambabase/mamba-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/mamba.png; \ done -ifeq ($(WITHKDE3),1) +ifeq ($(WITHKDE3TOOLS),1) @for i in 16x16 22x22 32x32 48x48 64x64 128x128; do \ $(INSTALL_DATA) mambawelcome/mambawelcome-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/mambawelcome.png; \ $(INSTALL_DATA) bootrecover/bootrecover-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/bootrecover.png; \ @@ -230,7 +231,7 @@ install-mambabase: @$(INSTALL_DIR) $(DESTDIR)$(mambabasedatadir) $(INSTALL_DATA) mambabase/mambabase.db $(DESTDIR)$(mambabasedatadir) $(INSTALL_SCRIPT) mambabase/mambabase.sh $(DESTDIR)$(mambabasedatadir) -ifeq ($(WITHKDE3),1) +ifeq ($(WITHKDE3TOOLS),1) $(INSTALL_SCRIPT) mambabase/mambabase.kmdr $(DESTDIR)$(mambabasedatadir) $(INSTALL_DATA) mambabase/mambabase.desktop $(DESTDIR)$(xdg_appsdir) $(INSTALL_DATA) mambabase/mambabase-autostart.desktop $(DESTDIR)$(mambabasedatadir) @@ -238,22 +239,25 @@ endif install-mambareport: $(INSTALL_SCRIPT) mambareport/openmamba-makereport $(DESTDIR)$(bindir) -ifeq ($(WITHKDE3),1) +ifeq ($(WITHKDE3TOOLS),1) @$(INSTALL_DIR) $(DESTDIR)$(mambareportdatadir) $(INSTALL_SCRIPT) mambareport/mambareport.kmdr $(DESTDIR)$(mambareportdatadir) $(INSTALL_DATA) mambareport/mambareport.desktop $(DESTDIR)$(xdg_appsdir) endif install-mambawelcome: -ifeq ($(WITHKDE3),1) +ifeq ($(WITHKDE3TOOLS),1) @$(INSTALL_DIR) $(DESTDIR)$(mambawelcomedatadir) @$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/rc.d/{init.d,rc5.d} + @$(INSTALL_DIR) $(DESTDIR)$(kdeconfigdir) $(INSTALL_SCRIPT) mambawelcome/mambawelcome.kmdr $(DESTDIR)$(mambawelcomedatadir) $(INSTALL_SCRIPT) mambawelcome/mambawelcome.sh $(DESTDIR)$(mambawelcomedatadir) $(INSTALL_SCRIPT) mambawelcome/mambawelcome-init $(DESTDIR)$(sysconfdir)/rc.d/init.d/mambawelcome $(INSTALL_DATA) gpl.html $(DESTDIR)$(mambawelcomedatadir)/gpl.html $(INSTALL_DATA) gpl-it.html $(DESTDIR)$(mambawelcomedatadir)/gpl-it.html $(INSTALL_DATA) gpl-es.html $(DESTDIR)$(mambawelcomedatadir)/gpl-es.html + $(INSTALL_DATA) kde/config/kcmfonts $(DESTDIR)$(kdeconfigdir)/kcmfonts + $(INSTALL_DATA) kde/config/kdeglobals $(DESTDIR)$(kdeconfigdir)/kdeglobals ln -s ../init.d/mambawelcome $(DESTDIR)$(sysconfdir)/rc.d/rc5.d/S99mambawelcome endif @@ -265,7 +269,7 @@ install-xramdr: install-bootrecover: @$(INSTALL_DIR) $(DESTDIR)$(bootrecoverdatadir) $(INSTALL_SCRIPT) bootrecover/bootrecover.sh $(DESTDIR)$(bootrecoverdatadir) -ifeq ($(WITHKDE3),1) +ifeq ($(WITHKDE3TOOLS),1) $(INSTALL_SCRIPT) bootrecover/bootrecover.kmdr $(DESTDIR)$(bootrecoverdatadir) $(INSTALL_DATA) bootrecover/openmamba-bootrecover.desktop $(DESTDIR)$(xdg_appsdir) endif