summaryrefslogtreecommitdiff
path: root/postprocess/CustomTarget_images.mk
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-04-26 13:13:23 +0200
committerDavid Tardon <dtardon@redhat.com>2013-04-26 13:17:52 +0200
commit35f86a72df84b905fd2297f8a08c75e91f43d604 (patch)
treeb3bca78e42f94448b252b3b3b115d076e15631d5 /postprocess/CustomTarget_images.mk
parent61101d99c229da979626a8c3aa471a42acfe6295 (diff)
one pattern rule is enough
As has been shown, two rules get out of sync .-) Change-Id: Ia331d3949fd8765c0d999d63351dda412d3c744d
Diffstat (limited to 'postprocess/CustomTarget_images.mk')
-rw-r--r--postprocess/CustomTarget_images.mk34
1 files changed, 11 insertions, 23 deletions
diff --git a/postprocess/CustomTarget_images.mk b/postprocess/CustomTarget_images.mk
index 68156a1a7ef5..e7d08c72efae 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)) \