dont attach, start own instance as otherwise it might be blocked via/proc/sys/kernel...
[LibreOffice.git] / packimages / pack / makefile.mk
blobba0c6f44154a22495f500055b92725cf49607a49
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
27 PRJ=..
28 PRJNAME=packimages
29 TARGET=packimages
31 .INCLUDE: settings.mk
32 # point to an existing directory as default that poses no threat
33 # to a "find" that looks for "*.png"
34 RSCCUSTOMIMG*=$(PRJ)
35 .INCLUDE: target.mk
37 IMAGES := $(COMMONBIN)$/images.zip
38 SORTED_LIST=$(RES)$/img$/sorted.lst
39 # Custom sets, at 24x24 & 16x16 fall-back to Tango preferentially
40 # (Tango fallbacks to Industrial for the missing icons)
41 CUSTOM_IMAGE_SETS=$(WITH_THEMES)
42 CUSTOM_IMAGES+=$(foreach,i,$(CUSTOM_IMAGE_SETS) images_$i)
43 CUSTOM_PREFERRED_FALLBACK_1*=-c $(SOLARSRC)$/ooo_custom_images$/tango
44 CUSTOM_PREFERRED_FALLBACK_2*=-c $(SOLARSRC)$/ooo_custom_images$/industrial
46 ALLTAR : $(IMAGES) $(CUSTOM_IMAGES) $(COMMONBIN)$/images_brand.zip
48 $(IMAGES) $(CUSTOM_IMAGES) : $(SORTED_LIST)
50 $(SORTED_LIST) : image-sort.lst
51 +-$(MKDIR) $(RES)$/img
52 +$(PERL) $(SOLARENV)$/bin$/image-sort.pl image-sort.lst $(SOLARXMLDIR) $@
54 $(RES)$/img$/commandimagelist.ilst .PHONY : $(SORTED_LIST)
55 @@-$(MKDIR) $(RES)$/img
56 #+-$(RM) $@ $@.$(INPATH)
57 $(FIND) $(SOLARSRC)$/$(RSCDEFIMG)/cmd -name "*.png" | sed "s#$(SOLARSRC)$/$(RSCDEFIMG)#%MODULE%#" | $(PERL) $(SOLARENV)$/bin$/sort.pl > $@.$(INPATH)
58 $(PERL) $(SOLARENV)$/bin$/diffmv.pl $@.$(INPATH) $@
60 $(COMMONBIN)$/images.zip .PHONY: $(RES)$/img$/commandimagelist.ilst
61 $(PERL) $(SOLARENV)$/bin$/packimages.pl -g $(SOLARSRC)$/$(RSCDEFIMG) -m $(SOLARSRC)$/$(RSCDEFIMG) -c $(RSCCUSTOMIMG) -l $(SOLARCOMMONRESDIR)$/img -s $(SORTED_LIST) -l $(RES)$/img -o $@
63 images_% : $(RES)$/img$/commandimagelist.ilst
64 $(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 # make sure to have one to keep packing happy
67 $(COMMONBIN)$/images_brand.zip:
68 @$(TOUCH) $@