makefile.mk (df478df5) makefile.mk (7d4f049e)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

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

25TARGET=packimages
26
27.INCLUDE: settings.mk
28# point to an existing directory as default that poses no threat
29# to a "find" that looks for "*.png"
30RSCCUSTOMIMG*=$(PRJ)
31.INCLUDE: target.mk
32
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

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

25TARGET=packimages
26
27.INCLUDE: settings.mk
28# point to an existing directory as default that poses no threat
29# to a "find" that looks for "*.png"
30RSCCUSTOMIMG*=$(PRJ)
31.INCLUDE: target.mk
32
33
34.IF "$(VERBOSE_PACKIMG)"=="TRUE"
35VERBOSESWITCH=-vv
36.ELIF "$(VERBOSE)"=="TRUE"
37VERBOSESWITCH=-v
38.ELSE
39VERBOSESWITCH=
40.ENDIF
41
33IMAGES := $(COMMONBIN)$/images.zip
34SORTED_LIST=$(RES)$/img$/sorted.lst
35# Custom sets, at 24x24 & 16x16 fall-back to industrial preferentially
36CUSTOM_IMAGE_SETS=hicontrast industrial classic
37CUSTOM_IMAGES+=$(foreach,i,$(CUSTOM_IMAGE_SETS) images_$i)
38CUSTOM_PREFERRED_FALLBACK_1*=-c $(SOLARSRC)$/ooo_custom_images$/industrial
39
40CLASSIC_TARBALL=$(SOLARSRC)$/ooo_custom_images$/classic/classic_images.tar.gz

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

49
50$(RES)$/img$/commandimagelist.ilst .PHONY : $(SORTED_LIST)
51 @@-$(MKDIR) $(RES)$/img
52#+-$(RM) $@ $@.$(INPATH)
53 $(FIND) $(SOLARSRC)$/$(RSCDEFIMG)/res/commandimagelist -name "*.png" | sed "s#$(SOLARSRC)$/$(RSCDEFIMG)/res#%GLOBALRES%#" | $(PERL) $(SOLARENV)$/bin$/sort.pl > $@.$(INPATH)
54 $(PERL) $(SOLARENV)$/bin$/diffmv.pl $@.$(INPATH) $@
55
56$(COMMONBIN)$/images.zip .PHONY: $(RES)$/img$/commandimagelist.ilst
42IMAGES := $(COMMONBIN)$/images.zip
43SORTED_LIST=$(RES)$/img$/sorted.lst
44# Custom sets, at 24x24 & 16x16 fall-back to industrial preferentially
45CUSTOM_IMAGE_SETS=hicontrast industrial classic
46CUSTOM_IMAGES+=$(foreach,i,$(CUSTOM_IMAGE_SETS) images_$i)
47CUSTOM_PREFERRED_FALLBACK_1*=-c $(SOLARSRC)$/ooo_custom_images$/industrial
48
49CLASSIC_TARBALL=$(SOLARSRC)$/ooo_custom_images$/classic/classic_images.tar.gz

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

58
59$(RES)$/img$/commandimagelist.ilst .PHONY : $(SORTED_LIST)
60 @@-$(MKDIR) $(RES)$/img
61#+-$(RM) $@ $@.$(INPATH)
62 $(FIND) $(SOLARSRC)$/$(RSCDEFIMG)/res/commandimagelist -name "*.png" | sed "s#$(SOLARSRC)$/$(RSCDEFIMG)/res#%GLOBALRES%#" | $(PERL) $(SOLARENV)$/bin$/sort.pl > $@.$(INPATH)
63 $(PERL) $(SOLARENV)$/bin$/diffmv.pl $@.$(INPATH) $@
64
65$(COMMONBIN)$/images.zip .PHONY: $(RES)$/img$/commandimagelist.ilst
57 $(PERL) $(SOLARENV)$/bin$/packimages.pl -g $(SOLARSRC)$/$(RSCDEFIMG) -m $(SOLARSRC)$/$(RSCDEFIMG) -c $(RSCCUSTOMIMG) -l $(SOLARCOMMONRESDIR)$/img -s $(SORTED_LIST) -l $(RES)$/img -o $@
66 $(PERL) $(SOLARENV)$/bin$/packimages.pl $(VERBOSESWITCH) -g $(SOLARSRC)$/$(RSCDEFIMG) -m $(SOLARSRC)$/$(RSCDEFIMG) -c $(RSCCUSTOMIMG) -l $(SOLARCOMMONRESDIR)$/img -s $(SORTED_LIST) -l $(RES)$/img -o $@
58
59images_% : $(RES)$/img$/commandimagelist.ilst
67
68images_% : $(RES)$/img$/commandimagelist.ilst
60 $(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
69 $(PERL) $(SOLARENV)$/bin$/packimages.pl $(VERBOSESWITCH) -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
61
62# make sure to have one to keep packing happy
63$(COMMONBIN)$/images_brand.zip:
64 @$(TOUCH) $@
65
66# generate the HiContrast icon set
67$(MISC)$/hicontrast.flag .PHONY :
68 $(PERL) $(SOLARENV)$/bin$/hicontrast-to-theme.pl $(SOLARSRC)$/default_images $(MISC)$/hicontrast && $(TOUCH) $@

--- 20 unchanged lines hidden ---
70
71# make sure to have one to keep packing happy
72$(COMMONBIN)$/images_brand.zip:
73 @$(TOUCH) $@
74
75# generate the HiContrast icon set
76$(MISC)$/hicontrast.flag .PHONY :
77 $(PERL) $(SOLARENV)$/bin$/hicontrast-to-theme.pl $(SOLARSRC)$/default_images $(MISC)$/hicontrast && $(TOUCH) $@

--- 20 unchanged lines hidden ---