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 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24 25$(DESTDIRDOCU)/%.html : $(PRJ)/docs/%.html 26 @@-rm -f $@ 27 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@ 28 29$(DESTDIREXAMPLES)/%.html : $(PRJ)/examples/%.html 30 @@-rm -f $@ 31 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@ 32 33$(DESTDIR)/index.html : $(PRJ)/index.html 34 @@-rm -f $@ 35 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@ 36 37$(DESTDIRDOCU)/%.css : $(PRJ)/docs/%.css 38 @@-rm -f $@ 39 $(MY_TEXTCOPY) $< $@ 40 41$(DESTDIRDOCUIMAGES)/% : $(PRJ)/docs/images/% 42 @@-rm -f $@ 43 $(MY_COPY) $< $@ 44 45$(DESTDIR)/configure : $(PRJ)/configure 46 @@-rm -f $@ 47 $(MY_TEXTCOPY) $(PRJ)/configure $@ 48 49$(DESTDIR)/configure.pl : $(PRJ)/configure.pl 50 @@-rm -f $@ 51 $(MY_TEXTCOPY) $(PRJ)/configure.pl $@ 52 53$(DESTDIR)/config.guess : $(SRC_ROOT)/config.guess 54 @@-rm -f $@ 55 $(MY_TEXTCOPY) $(SRC_ROOT)/config.guess $@ 56 57$(DESTDIR)/config.sub : $(SRC_ROOT)/config.sub 58 @@-rm -f $@ 59 $(MY_TEXTCOPY) $(SRC_ROOT)/config.sub $@ 60 61$(DESTDIR)/setsdkenv_unix : $(PRJ)/setsdkenv_unix 62 @@-rm -f $@ 63 $(MY_TEXTCOPY) $< $@ 64 65$(DESTDIR)/setsdkenv_unix.%.in : $(PRJ)/setsdkenv_unix.%.in 66 @@-rm -f $@ 67 $(MY_TEXTCOPY) $< $@ 68 69$(DESTDIR)/setsdkenv_windows.bat : $(PRJ)/setsdkenv_windows.bat 70 @@-rm -f $@ 71 $(TYPE) $< | $(SED) 's#__SDKNAME__#$(SDKDIRNAME)#' > $@ 72 73$(DESTDIR)/%.bat : $(PRJ)/%.bat 74 @@-rm -f $@ 75 $(MY_TEXTCOPY) $< $@ 76 77$(DESTDIR)/setsdkenv_windows.template : $(PRJ)/setsdkenv_windows.template 78 @@-rm -f $@ 79 $(MY_TEXTCOPY) $< $@ 80 81$(DESTDIR)/cfgWin.js : $(PRJ)/cfgWin.js 82 @@-rm -f $@ 83 $(MY_TEXTCOPY) $(PRJ)/cfgWin.js $@ 84 85$(DESTDIRSETTINGS)/%.mk : $(PRJ)/settings/%.mk 86 @@-rm -f $@ 87 $(MY_TEXTCOPY) $< $@ 88 89$(DESTDIRXML)/module-description.dtd : $(XMLOUT)/module-description.dtd 90 @@-rm -f $@ 91 $(MY_TEXTCOPY) $(XMLOUT)/module-description.dtd $@ 92$(DESTDIRXML)/%.xml : $(XMLOUT)/%.xml 93 @@-rm -f $@ 94 $(MY_TEXTCOPY) $< $@ 95 96$(DESTDIRBIN)/%$(EXEPOSTFIX) : $(BINOUT)/%$(EXEPOSTFIX) 97 @@-rm -f $@ 98 $(GNUCOPY) $(BINOUT)/$(@:f) $@ 99 100$(DESTDIRBIN)/%.bin : $(BINOUT)/%.bin 101 @@-rm -f $@ 102 $(GNUCOPY) $(BINOUT)/$(@:f) $@ 103 104$(DESTDIRBIN)/regcomp : $(BINOUT)/regcomp 105 @@-rm -f $@ 106 $(MY_TEXTCOPY) $< $@ 107 108$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) : $(BIN)/unoapploader$(EXEPOSTFIX) 109 @@-rm -f $@ 110 $(GNUCOPY) $(BIN)/$(@:f) $@ 111 112# special rule for special Java UNO native library 113# (used for all platforms but built only under windows; 114# otherwise provided in external) 115$(DESTDIRJAR)/win/unowinreg.dll : $(BIN)/unowinreg.dll 116 @@-rm -f $@ 117 $(GNUCOPY) $< $@ 118 119$(DESTDIRCLI)/%.dll : $(BINOUT)/%.dll 120 @@-rm -f $@ 121 $(GNUCOPY) $< $@ 122 123$(DESTDIRDLL)/%$(MY_DLLPOSTFIX) : $(DLLOUT)/%$(MY_DLLPOSTFIX) 124 @@-rm -f $@ 125 $(GNUCOPY) $(DLLOUT)/$(@:f) $@ 126 127$(DESTDIRJAR)/com/sun/star/lib/loader/%.class : $(CLASSDIR)/com/sun/star/lib/loader/%.class 128 @@-$(RM) $(@:db).class 129 $(COPY) $(<:db).class $(@:d) 130# deal with subclasses 131 @@-$(RM) $(@:db)$(EMQ)$$*.class 132 -$(COPY) $(<:db)$(EMQ)$$*.class $(@:d) 133 134$(DESTDIRIDL)/% : $(IDLOUT)/% 135 $(MY_TEXTCOPY) $< $@ 136# @touch $(IDL_DOCU_CLEANUP_FLAG) 137 138$(DESTDIRINC)/udkversion.mk : 139 @@-rm -f $@ 140 @echo #UDK version number > $@ 141 @echo #major >> $@ 142 @echo UDK_MAJOR=$(UDK_MAJOR) >> $@ 143 @echo #minor >> $@ 144 @echo UDK_MINOR=$(UDK_MINOR) >> $@ 145 @echo #micro >> $@ 146 @echo UDK_MICRO=$(UDK_MICRO) >> $@ 147 148$(DESTDIRINC)/% : $(INCOUT)/% 149 $(MY_TEXTCOPY) $< $@ 150 151$(DESTDIRLIB)/%.lib : $(LIBOUT)/%.lib 152 @@-rm -f $@ 153 $(GNUCOPY) $(LIBOUT)/$(@:f) $@ 154 155$(DESTDIRLIB)/%.a : $(LIBOUT)/%.a 156 @@-rm -f $@ 157 $(GNUCOPY) $(LIBOUT)/$(@:f) $@ 158 159$(DIR_CREATE_FLAG) : 160 $(TYPE) $(mktmp $(DIR_DIRECTORY_LIST)) | xargs -n 20 $(MKDIRHIER) && echo "dirs created" > $@ && touch $@ 161 $(DELAY) 2 162 163$(DESTDIRSETTINGS)/component.uno.def : $(PRJ)/settings/component.uno.def 164 @@-rm -f $@ 165 $(MY_TEXTCOPY) $< $@ 166 167$(DESTDIRSETTINGS)/component.uno.map : $(SOLARENV)/bin/addsym.awk $(SOLARENV)/src/component.map 168 @@-$(RM) -f $@ 169.IF "$(COMID)"=="gcc3" && "$(OS)"!="MACOSX" 170 tr -d "\015" < $(SOLARENV)/src/component.map | $(AWK) -f $(SOLARENV)/bin/addsym.awk > $@ 171.ELSE # "$(COMID)"=="gcc3" 172 tr -d "\015" < $(SOLARENV)/src/component.map > $@ 173.ENDIF # "$(COMID)"=="gcc3" 174 @chmod 664 $@ 175 176$(DIR_FILE_LIST) : $(DIR_CREATE_FLAG) 177 178$(DIR_FILE_FLAG) : $(DIR_FILE_LIST) 179 @echo "must be zipped" > $@ 180 181 182 183