1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 #*************************************************************************
29 $(DESTDIRDOCU)/%.html : $(PRJ)/docs/%.html
31 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@
33 $(DESTDIREXAMPLES)/%.html : $(PRJ)/examples/%.html
35 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@
37 $(DESTDIR)/index.html : $(PRJ)/index.html
39 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@
41 $(DESTDIRDOCU)/%.css : $(PRJ)/docs/%.css
45 $(DESTDIRDOCUIMAGES)/% : $(PRJ)/docs/images/%
49 $(DESTDIR)/configure : $(PRJ)/configure
51 $(MY_TEXTCOPY) $(PRJ)/configure $@
53 $(DESTDIR)/configure.pl : $(PRJ)/configure.pl
55 $(MY_TEXTCOPY) $(PRJ)/configure.pl $@
57 $(DESTDIR)/config.guess : $(SRC_ROOT)/config.guess
59 $(MY_TEXTCOPY) $(SRC_ROOT)/config.guess $@
61 $(DESTDIR)/config.sub : $(SRC_ROOT)/config.sub
63 $(MY_TEXTCOPY) $(SRC_ROOT)/config.sub $@
65 $(DESTDIR)/setsdkenv_unix : $(PRJ)/setsdkenv_unix
69 $(DESTDIR)/setsdkenv_unix.%.in : $(PRJ)/setsdkenv_unix.%.in
73 $(DESTDIR)/setsdkenv_windows.bat : $(PRJ)/setsdkenv_windows.bat
75 $(TYPE) $< | $(SED) 's#__SDKNAME__#$(SDKDIRNAME)#' > $@
77 $(DESTDIR)/%.bat : $(PRJ)/%.bat
81 $(DESTDIR)/setsdkenv_windows.template : $(PRJ)/setsdkenv_windows.template
85 $(DESTDIR)/cfgWin.js : $(PRJ)/cfgWin.js
87 $(MY_TEXTCOPY) $(PRJ)/cfgWin.js $@
89 $(DESTDIRSETTINGS)/%.mk : $(PRJ)/settings/%.mk
93 $(DESTDIRXML)/module-description.dtd : $(XMLOUT)/module-description.dtd
95 $(MY_TEXTCOPY) $(XMLOUT)/module-description.dtd $@
96 $(DESTDIRXML)/%.xml : $(XMLOUT)/%.xml
100 $(DESTDIRBIN)/%$(EXEPOSTFIX) : $(BINOUT)/%$(EXEPOSTFIX)
102 $(GNUCOPY) $(BINOUT)/$(@:f) $@
104 $(DESTDIRBIN)/%.bin : $(BINOUT)/%.bin
106 $(GNUCOPY) $(BINOUT)/$(@:f) $@
108 $(DESTDIRBIN)/regcomp : $(BINOUT)/regcomp
112 $(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) : $(BIN)/unoapploader$(EXEPOSTFIX)
114 $(GNUCOPY) $(BIN)/$(@:f) $@
116 # special rule for special Java UNO native library
117 # (used for all platforms but built only under windows;
118 # otherwise provided in external)
119 $(DESTDIRJAR)/win/unowinreg.dll : $(BIN)/unowinreg.dll
123 $(DESTDIRCLI)/%.dll : $(BINOUT)/%.dll
127 $(DESTDIRDLL)/%$(MY_DLLPOSTFIX) : $(DLLOUT)/%$(MY_DLLPOSTFIX)
129 $(GNUCOPY) $(DLLOUT)/$(@:f) $@
131 $(DESTDIRJAR)/com/sun/star/lib/loader/%.class : $(CLASSDIR)/com/sun/star/lib/loader/%.class
132 @@-$(RM) $(@:db).class
133 $(COPY) $(<:db).class $(@:d)
134 # deal with subclasses
135 @@-$(RM) $(@:db)$(EMQ)$$*.class
136 -$(COPY) $(<:db)$(EMQ)$$*.class $(@:d)
138 $(DESTDIRIDL)/% : $(IDLOUT)/%
141 $(DESTDIRINC)/udkversion.mk :
143 @echo #UDK version number > $@
145 @echo UDK_MAJOR=$(UDK_MAJOR) >> $@
147 @echo UDK_MINOR=$(UDK_MINOR) >> $@
149 @echo UDK_MICRO=$(UDK_MICRO) >> $@
151 $(DESTDIRINC)/% : $(INCOUT)/%
154 $(DESTDIRLIB)/%.lib : $(LIBOUT)/%.lib
156 $(GNUCOPY) $(LIBOUT)/$(@:f) $@
158 $(DESTDIRLIB)/%.a : $(LIBOUT)/%.a
160 $(GNUCOPY) $(LIBOUT)/$(@:f) $@
163 $(TYPE) $(mktmp $(DIR_DIRECTORY_LIST)) | xargs -n 20 $(MKDIRHIER) && echo "dirs created" > $@ && touch $@
166 $(DESTDIRSETTINGS)/component.uno.def : $(PRJ)/settings/component.uno.def
170 $(DESTDIRSETTINGS)/component.uno.map : $(SOLARENV)/bin/addsym.awk $(SOLARENV)/src/component.map
172 .IF "$(COMID)"=="gcc3"
173 tr -d "\015" < $(SOLARENV)/src/component.map | $(AWK) -f $(SOLARENV)/bin/addsym.awk > $@
174 .IF "$(OS)"=="MACOSX"
175 tr -d "\015" < $(SOLARENV)/src/component.map | tail -n +3 | head -3 | sed -e 's/.*component/_component/g' -e 's/;[ ]*//' > $@
177 .ELSE # "$(COMID)"=="gcc3"
178 tr -d "\015" < $(SOLARENV)/src/component.map > $@
179 .ENDIF # "$(COMID)"=="gcc3"
182 $(DIR_FILE_LIST) : $(DIR_CREATE_FLAG)
184 $(DIR_FILE_FLAG) : $(DIR_FILE_LIST)
185 @echo "must be zipped" > $@