postprocess/CustomTarget_images.mk |   34 +++++++++++-----------------------
 1 file changed, 11 insertions(+), 23 deletions(-)

New commits:
commit 35f86a72df84b905fd2297f8a08c75e91f43d604
Author: David Tardon <dtar...@redhat.com>
Date:   Fri Apr 26 13:13:23 2013 +0200

    one pattern rule is enough
    
    As has been shown, two rules get out of sync .-)
    
    Change-Id: Ia331d3949fd8765c0d999d63351dda412d3c744d

diff --git a/postprocess/CustomTarget_images.mk 
b/postprocess/CustomTarget_images.mk
index 68156a1..e7d08c7 100644
--- a/postprocess/CustomTarget_images.mk
+++ b/postprocess/CustomTarget_images.mk
@@ -32,8 +32,7 @@ helpimages_DIR := $(call 
gb_CustomTarget_get_workdir,helpcontent2/source/auxilia
 
 # Custom sets, at 24x24 & 16x16 fall-back to Tango preferentially
 # (Tango fallbacks to Industrial for the missing icons)
-packimages_CUSTOM_FALLBACK_1 := -c $(SRCDIR)/icon-themes/tango
-packimages_CUSTOM_FALLBACK_2 := -c $(SRCDIR)/icon-themes/industrial
+packimages_CUSTOM_FALLBACKS := -c $(SRCDIR)/icon-themes/tango -c 
$(SRCDIR)/icon-themes/industrial
 
 $(eval $(call gb_CustomTarget_register_targets,postprocess/images,\
        images_brand.zip \
@@ -43,25 +42,10 @@ $(eval $(call 
gb_CustomTarget_register_targets,postprocess/images,\
        sorted.lst \
 ))
 
-$(packimages_DIR)/images.zip : \
-               $(packimages_DIR)/sorted.lst \
-               $(packimages_DIR)/commandimagelist.ilst \
-               $(call gb_Helper_optional,HELP,$(helpimages_DIR)/helpimg.ilst) \
-               $(call gb_Postprocess_get_target,AllResources) \
-               $(call gb_Postprocess_get_target,AllUIConfigs)
-       $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
-       $(call gb_Helper_abbreviate_dirs, \
-               $(PERL) $(SOLARENV)/bin/packimages.pl -g 
$(SRCDIR)/icon-themes/galaxy \
-                       -m $(SRCDIR)/icon-themes/galaxy -c $(packimages_DIR) \
-                       $(call gb_Helper_optional,HELP,-l $(helpimages_DIR) ) \
-                       -l $(packimages_DIR) \
-                       -l $(dir $(call gb_ResTarget_get_imagelist_target)) \
-                       -l $(dir $(call gb_UIConfig_get_imagelist_target)) \
-                       -l $(dir $(call 
gb_UIConfig_get_imagelist_target,modules/)) \
-                       -s $< -o $@ \
-                       $(if $(findstring s,$(MAKEFLAGS)),> /dev/null))
+$(packimages_DIR)/images.zip : DEFAULT_THEME := $(true)
+$(packimages_DIR)/images_%.zip : DEFAULT_THEME :=
 
-$(packimages_DIR)/images_%.zip : \
+$(packimages_DIR)/%.zip : \
                $(packimages_DIR)/sorted.lst \
                $(packimages_DIR)/commandimagelist.ilst \
                $(call gb_Helper_optional,HELP,$(helpimages_DIR)/helpimg.ilst) \
@@ -69,9 +53,13 @@ $(packimages_DIR)/images_%.zip : \
                $(call gb_Postprocess_get_target,AllUIConfigs)
        $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
        $(call gb_Helper_abbreviate_dirs, \
-               $(PERL) $(SOLARENV)/bin/packimages.pl -g 
$(SRCDIR)/icon-themes/galaxy \
-                       -m $(SRCDIR)/icon-themes/galaxy -c 
$(SRCDIR)/icon-themes/$* \
-                       $(packimages_CUSTOM_FALLBACK_1) 
$(packimages_CUSTOM_FALLBACK_2) \
+               $(PERL) $(SOLARENV)/bin/packimages.pl \
+                       -g $(SRCDIR)/icon-themes/galaxy \
+                       -m $(SRCDIR)/icon-themes/galaxy \
+                       $(if $(DEFAULT_THEME),\
+                               -c $(packimages_DIR),\
+                               -c $(SRCDIR)/icon-themes/$(subst images_,,$*) 
$(packimages_CUSTOM_FALLBACKS) \
+                       ) \
                        $(call gb_Helper_optional,HELP,-l $(helpimages_DIR) ) \
                        -l $(packimages_DIR) \
                        -l $(dir $(call gb_ResTarget_get_imagelist_target)) \
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to