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.IF "$(COMEX)"=="7" 88 $(MY_TEXTCOPY) $< | $(SED) -e 's/stlport_vc7/stlport_vc6/' $@ 89.ELSE 90 $(MY_TEXTCOPY) $< $@ 91.ENDIF 92 93$(DESTDIRXML)/module-description.dtd : $(XMLOUT)/module-description.dtd 94 @@-rm -f $@ 95 $(MY_TEXTCOPY) $(XMLOUT)/module-description.dtd $@ 96$(DESTDIRXML)/%.xml : $(XMLOUT)/%.xml 97 @@-rm -f $@ 98 $(MY_TEXTCOPY) $< $@ 99 100$(DESTDIRBIN)/%$(EXEPOSTFIX) : $(BINOUT)/%$(EXEPOSTFIX) 101 @@-rm -f $@ 102 $(GNUCOPY) $(BINOUT)/$(@:f) $@ 103 104$(DESTDIRBIN)/%.bin : $(BINOUT)/%.bin 105 @@-rm -f $@ 106 $(GNUCOPY) $(BINOUT)/$(@:f) $@ 107 108$(DESTDIRBIN)/regcomp : $(BINOUT)/regcomp 109 @@-rm -f $@ 110 $(MY_TEXTCOPY) $< $@ 111 112$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) : $(BIN)/unoapploader$(EXEPOSTFIX) 113 @@-rm -f $@ 114 $(GNUCOPY) $(BIN)/$(@:f) $@ 115 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 120 @@-rm -f $@ 121 $(GNUCOPY) $< $@ 122 123$(DESTDIRCLI)/%.dll : $(BINOUT)/%.dll 124 @@-rm -f $@ 125 $(GNUCOPY) $< $@ 126 127$(DESTDIRDLL)/%$(MY_DLLPOSTFIX) : $(DLLOUT)/%$(MY_DLLPOSTFIX) 128 @@-rm -f $@ 129 $(GNUCOPY) $(DLLOUT)/$(@:f) $@ 130 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) 137 138$(DESTDIRIDL)/% : $(IDLOUT)/% 139 $(MY_TEXTCOPY) $< $@ 140# @touch $(IDL_DOCU_CLEANUP_FLAG) 141 142$(DESTDIRINC)/udkversion.mk : 143 @@-rm -f $@ 144 @echo #UDK version number > $@ 145 @echo #major >> $@ 146 @echo UDK_MAJOR=$(UDK_MAJOR) >> $@ 147 @echo #minor >> $@ 148 @echo UDK_MINOR=$(UDK_MINOR) >> $@ 149 @echo #micro >> $@ 150 @echo UDK_MICRO=$(UDK_MICRO) >> $@ 151 152$(DESTDIRINC)/% : $(INCOUT)/% 153 $(MY_TEXTCOPY) $< $@ 154 155$(DESTDIRLIB)/%.lib : $(LIBOUT)/%.lib 156 @@-rm -f $@ 157 $(GNUCOPY) $(LIBOUT)/$(@:f) $@ 158 159$(DESTDIRLIB)/%.a : $(LIBOUT)/%.a 160 @@-rm -f $@ 161 $(GNUCOPY) $(LIBOUT)/$(@:f) $@ 162 163$(DIR_CREATE_FLAG) : 164 $(TYPE) $(mktmp $(DIR_DIRECTORY_LIST)) | xargs -n 20 $(MKDIRHIER) && echo "dirs created" > $@ && touch $@ 165 $(DELAY) 2 166 167$(DESTDIRSETTINGS)/component.uno.def : $(PRJ)/settings/component.uno.def 168 @@-rm -f $@ 169 $(MY_TEXTCOPY) $< $@ 170 171$(DESTDIRSETTINGS)/component.uno.map : $(SOLARENV)/bin/addsym.awk $(SOLARENV)/src/component.map 172 @@-$(RM) -f $@ 173.IF "$(COMID)"=="gcc3" 174 tr -d "\015" < $(SOLARENV)/src/component.map | $(AWK) -f $(SOLARENV)/bin/addsym.awk > $@ 175.IF "$(OS)"=="MACOSX" 176 tr -d "\015" < $(SOLARENV)/src/component.map | tail -n +3 | head -3 | sed -e 's/.*component/_component/g' -e 's/;[ ]*//' > $@ 177.ENDIF 178.ELSE # "$(COMID)"=="gcc3" 179 tr -d "\015" < $(SOLARENV)/src/component.map > $@ 180.ENDIF # "$(COMID)"=="gcc3" 181 @chmod 664 $@ 182 183$(DIR_FILE_LIST) : $(DIR_CREATE_FLAG) 184 185$(DIR_FILE_FLAG) : $(DIR_FILE_LIST) 186 @echo "must be zipped" > $@ 187 188 189 190