merge the formfield patch from ooo-build
[ooovba.git] / connectivity / util / makefile.mk
blob805aa0110f6f328a2996c7aecec5e4ceb7d96fa6
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.22 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ = ..
33 TARGET = connectivity
34 PRJNAME = connectivity
36 # -----------------------------------------------------------------------------
37 # include global settings
38 # -----------------------------------------------------------------------------
40 .INCLUDE : settings.mk
42 DIR_FILTERCFGOUT := $(MISC)$/drivers
43 DIR_LANGPACK := $(DIR_FILTERCFGOUT)
44 .IF "$(WITH_LANG)"!=""
45 DIR_LANG_SOURCE := $(MISC)$/merge
46 .ELSE
47 DIR_LANG_SOURCE := $(MISC)$/registry$/data
48 .ENDIF
49 DRIVER_MERGE_XCU := $(shell -@$(FIND) $(DIR_LANG_SOURCE)$/org$/openoffice$/Office$/DataAccess -name "*.xcu")
51 REALFILTERPACKAGES_FILTERS_UI_LANGPACKS = \
52 $(foreach,i,$(alllangiso) $(foreach,j,$(DRIVER_MERGE_XCU) $(DIR_LANGPACK)$/$i$/org$/openoffice$/Office$/DataAccess$/$(j:f)))
54 .INCLUDE: target.mk
56 PACKLANG := $(XSLTPROC) --nonet
57 PACKLANG_IN :=
58 PACKLANG_PARAM := --stringparam
59 PACKLANG_XSL :=
61 $(REALFILTERPACKAGES_FILTERS_UI_LANGPACKS) :
62 @echo ===================================================================
63 @echo Building language package for driver $(@:b:s/Filter_//)
64 @echo ===================================================================
65 +-$(MKDIRHIER) $(@:d)
66 $(PACKLANG) $(PACKLANG_PARAM) lang $(@:d:d:d:d:d:d:d:d:d:d:b) $(PACKLANG_XSL) langfilter.xsl $(PACKLANG_IN) $(DIR_LANG_SOURCE)$/org$/openoffice$/Office$/DataAccess$/$(@:f) > $@
68 $(MISC)$/$(TARGET)_delzip :
69 -$(RM) $(BIN)$/fcfg_drivers_{$(alllangiso)}.zip
71 $(BIN)$/fcfg_drivers_{$(alllangiso)}.zip : $(REALFILTERPACKAGES_FILTERS_UI_LANGPACKS)
72 cd $(DIR_FILTERCFGOUT)$/$(@:b:s/fcfg_drivers_//) && zip -ru ..$/..$/..$/bin$/fcfg_drivers_$(@:b:s/fcfg_drivers_//).zip org/*
73 .IF "$(USE_SHELL)"!="4nt"
74 $(PERL) -w $(SOLARENV)$/bin$/cleanzip.pl $@
75 .ENDIF # "$(USE_SHELL)"!="4nt"
77 ALLTAR: \
78 $(MISC)$/$(TARGET)_delzip \
79 $(BIN)$/fcfg_drivers_{$(alllangiso)}.zip