makefile.mk (ddd81bc4) makefile.mk (25d782d7)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#

--- 28 unchanged lines hidden (view full) ---

37IMAGES := $(COMMONBIN)$/images.zip
38SORTED_LIST=$(RES)$/img$/sorted.lst
39# Custom sets, at 24x24 & 16x16 fall-back to industrial preferentially
40CUSTOM_IMAGE_SETS=hicontrast industrial crystal tango classic
41CUSTOM_IMAGES+=$(foreach,i,$(CUSTOM_IMAGE_SETS) images_$i)
42CUSTOM_PREFERRED_FALLBACK_1*=-c $(SOLARSRC)$/ooo_custom_images$/tango
43CUSTOM_PREFERRED_FALLBACK_2*=-c $(SOLARSRC)$/ooo_custom_images$/industrial
44
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#

--- 28 unchanged lines hidden (view full) ---

37IMAGES := $(COMMONBIN)$/images.zip
38SORTED_LIST=$(RES)$/img$/sorted.lst
39# Custom sets, at 24x24 & 16x16 fall-back to industrial preferentially
40CUSTOM_IMAGE_SETS=hicontrast industrial crystal tango classic
41CUSTOM_IMAGES+=$(foreach,i,$(CUSTOM_IMAGE_SETS) images_$i)
42CUSTOM_PREFERRED_FALLBACK_1*=-c $(SOLARSRC)$/ooo_custom_images$/tango
43CUSTOM_PREFERRED_FALLBACK_2*=-c $(SOLARSRC)$/ooo_custom_images$/industrial
44
45CRYSTAL_TARBALL=$(SOLARSRC)$/external_images$/ooo_crystal_images-1.tar.gz
45CLASSIC_TARBALL=$(SOLARSRC)$/ooo_custom_images$/classic/classic_images.tar.gz
46
47ALLTAR : $(IMAGES) $(CUSTOM_IMAGES) $(COMMONBIN)$/images_brand.zip
48
49$(IMAGES) $(CUSTOM_IMAGES) : $(SORTED_LIST)
50
51$(SORTED_LIST) : image-sort.lst
52 +-$(MKDIR) $(RES)$/img

--- 10 unchanged lines hidden (view full) ---

63
64images_% : $(RES)$/img$/commandimagelist.ilst
65 $(PERL) $(SOLARENV)$/bin$/packimages.pl -g $(SOLARSRC)$/$(RSCDEFIMG) -m $(SOLARSRC)$/$(RSCDEFIMG) -c $(RSCCUSTOMIMG) -c $(SOLARSRC)$/ooo_custom_images$/$(@:s/images_//) -c $(MISC)$/$(@:s/images_//) $(CUSTOM_PREFERRED_FALLBACK_1) $(CUSTOM_PREFERRED_FALLBACK_2) -l $(SOLARCOMMONRESDIR)$/img -l $(RES)$/img -s $(SORTED_LIST) -o $(COMMONBIN)$/$@.zip
66
67# make sure to have one to keep packing happy
68$(COMMONBIN)$/images_brand.zip:
69 @$(TOUCH) $@
70
46CLASSIC_TARBALL=$(SOLARSRC)$/ooo_custom_images$/classic/classic_images.tar.gz
47
48ALLTAR : $(IMAGES) $(CUSTOM_IMAGES) $(COMMONBIN)$/images_brand.zip
49
50$(IMAGES) $(CUSTOM_IMAGES) : $(SORTED_LIST)
51
52$(SORTED_LIST) : image-sort.lst
53 +-$(MKDIR) $(RES)$/img

--- 10 unchanged lines hidden (view full) ---

64
65images_% : $(RES)$/img$/commandimagelist.ilst
66 $(PERL) $(SOLARENV)$/bin$/packimages.pl -g $(SOLARSRC)$/$(RSCDEFIMG) -m $(SOLARSRC)$/$(RSCDEFIMG) -c $(RSCCUSTOMIMG) -c $(SOLARSRC)$/ooo_custom_images$/$(@:s/images_//) -c $(MISC)$/$(@:s/images_//) $(CUSTOM_PREFERRED_FALLBACK_1) $(CUSTOM_PREFERRED_FALLBACK_2) -l $(SOLARCOMMONRESDIR)$/img -l $(RES)$/img -s $(SORTED_LIST) -o $(COMMONBIN)$/$@.zip
67
68# make sure to have one to keep packing happy
69$(COMMONBIN)$/images_brand.zip:
70 @$(TOUCH) $@
71
72# generate the HiContrast icon set
73$(MISC)$/hicontrast.flag .PHONY :
74 $(PERL) $(SOLARENV)$/bin$/hicontrast-to-theme.pl $(SOLARSRC)$/default_images $(MISC)$/hicontrast && $(TOUCH) $@
75
76# unpack the Crystal icon set
77$(MISC)$/crystal.flag : $(CRYSTAL_TARBALL)
78 cd $(MISC) && gzip -d -c $(CRYSTAL_TARBALL) | ( tar -xf - ) && $(TOUCH) $(@:f)
79.IF "$(GUI)"=="UNX"
80 chmod -R g+w $(MISC)$/crystal
81.ENDIF
82 @$(TYPE) $@ || echo "ERROR: unpacking $(CRYSTAL_TARBALL) failed"
83
71# unpack the classic icon set
72$(MISC)$/classic.flag : $(CLASSIC_TARBALL)
73 cd $(MISC) && gunzip -c $(CLASSIC_TARBALL) | ( tar -xf - ) && $(TOUCH) $(@:f)
74.IF "$(GUI)"=="UNX"
75 chmod -R g+w $(MISC)$/classic
76.ENDIF
77 @$(TYPE) $@ || echo "ERROR: unpacking $(CLASSIC_TARBALL) failed"
78
79# dependencies
80images_hicontrast : $(MISC)$/hicontrast.flag $(RES)$/img$/commandimagelist.ilst
81
82images_crystal : $(MISC)$/crystal.flag $(RES)$/img$/commandimagelist.ilst
83
84images_classic : $(MISC)$/classic.flag $(RES)$/img$/commandimagelist.ilst
85
84# unpack the classic icon set
85$(MISC)$/classic.flag : $(CLASSIC_TARBALL)
86 cd $(MISC) && gunzip -c $(CLASSIC_TARBALL) | ( tar -xf - ) && $(TOUCH) $(@:f)
87.IF "$(GUI)"=="UNX"
88 chmod -R g+w $(MISC)$/classic
89.ENDIF
90 @$(TYPE) $@ || echo "ERROR: unpacking $(CLASSIC_TARBALL) failed"
91
92# dependencies
93images_hicontrast : $(MISC)$/hicontrast.flag $(RES)$/img$/commandimagelist.ilst
94
95images_crystal : $(MISC)$/crystal.flag $(RES)$/img$/commandimagelist.ilst
96
97images_classic : $(MISC)$/classic.flag $(RES)$/img$/commandimagelist.ilst
98