1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 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. 14# 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). 20# 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. 25# 26#************************************************************************* 27 28 29$(DESTDIRDOCU)/%.html : $(PRJ)/docs/%.html 30 @@-rm -f $@ 31 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@ 32 33$(DESTDIREXAMPLES)/%.html : $(PRJ)/examples/%.html 34 @@-rm -f $@ 35 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@ 36 37$(DESTDIR)/index.html : $(PRJ)/index.html 38 @@-rm -f $@ 39 tr -d "\015" < $< | sed -e 's/%PRODUCT_RELEASE%/$(PRODUCT_RELEASE)/g' > $@ 40 41$(DESTDIRDOCU)/%.css : $(PRJ)/docs/%.css 42 @@-rm -f $@ 43 $(MY_TEXTCOPY) $< $@ 44 45$(DESTDIRDOCUIMAGES)/% : $(PRJ)/docs/images/% 46 @@-rm -f $@ 47 $(MY_COPY) $< $@ 48 49$(DESTDIR)/configure : $(PRJ)/configure 50 @@-rm -f $@ 51 $(MY_TEXTCOPY) $(PRJ)/configure $@ 52 53$(DESTDIR)/configure.pl : $(PRJ)/configure.pl 54 @@-rm -f $@ 55 $(MY_TEXTCOPY) $(PRJ)/configure.pl $@ 56 57$(DESTDIR)/config.guess : $(SRC_ROOT)/config.guess 58 @@-rm -f $@ 59 $(MY_TEXTCOPY) $(SRC_ROOT)/config.guess $@ 60 61$(DESTDIR)/config.sub : $(SRC_ROOT)/config.sub 62 @@-rm -f $@ 63 $(MY_TEXTCOPY) $(SRC_ROOT)/config.sub $@ 64 65$(DESTDIR)/setsdkenv_unix : $(PRJ)/setsdkenv_unix 66 @@-rm -f $@ 67 $(MY_TEXTCOPY) $< $@ 68 69$(DESTDIR)/setsdkenv_unix.%.in : $(PRJ)/setsdkenv_unix.%.in 70 @@-rm -f $@ 71 $(MY_TEXTCOPY) $< $@ 72 73$(DESTDIR)/setsdkenv_windows.bat : $(PRJ)/setsdkenv_windows.bat 74 @@-rm -f $@ 75 $(TYPE) $< | $(SED) 's#__SDKNAME__#$(SDKDIRNAME)#' > $@ 76 77$(DESTDIR)/%.bat : $(PRJ)/%.bat 78 @@-rm -f $@ 79 $(MY_TEXTCOPY) $< $@ 80 81$(DESTDIR)/setsdkenv_windows.template : $(PRJ)/setsdkenv_windows.template 82 @@-rm -f $@ 83 $(MY_TEXTCOPY) $< $@ 84 85$(DESTDIR)/cfgWin.js : $(PRJ)/cfgWin.js 86 @@-rm -f $@ 87 $(MY_TEXTCOPY) $(PRJ)/cfgWin.js $@ 88 89$(DESTDIRSETTINGS)/%.mk : $(PRJ)/settings/%.mk 90 @@-rm -f $@ 91.IF "$(COMEX)"=="7" 92 $(MY_TEXTCOPY) $< | $(SED) -e 's/stlport_vc7/stlport_vc6/' $@ 93.ELSE 94 $(MY_TEXTCOPY) $< $@ 95.ENDIF 96 97$(DESTDIRXML)/module-description.dtd : $(XMLOUT)/module-description.dtd 98 @@-rm -f $@ 99 $(MY_TEXTCOPY) $(XMLOUT)/module-description.dtd $@ 100$(DESTDIRXML)/%.xml : $(XMLOUT)/%.xml 101 @@-rm -f $@ 102 $(MY_TEXTCOPY) $< $@ 103 104$(DESTDIRBIN)/%$(EXEPOSTFIX) : $(BINOUT)/%$(EXEPOSTFIX) 105 @@-rm -f $@ 106 $(GNUCOPY) $(BINOUT)/$(@:f) $@ 107 108$(DESTDIRBIN)/%.bin : $(BINOUT)/%.bin 109 @@-rm -f $@ 110 $(GNUCOPY) $(BINOUT)/$(@:f) $@ 111 112$(DESTDIRBIN)/regcomp : $(BINOUT)/regcomp 113 @@-rm -f $@ 114 $(MY_TEXTCOPY) $< $@ 115 116$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) : $(BIN)/unoapploader$(EXEPOSTFIX) 117 @@-rm -f $@ 118 $(GNUCOPY) $(BIN)/$(@:f) $@ 119 120# special rule for special Java UNO native library 121# (used for all platforms but built only under windows; 122# otherwise provided in external) 123$(DESTDIRJAR)/win/unowinreg.dll : $(BIN)/unowinreg.dll 124 @@-rm -f $@ 125 $(GNUCOPY) $< $@ 126 127$(DESTDIRCLI)/%.dll : $(BINOUT)/%.dll 128 @@-rm -f $@ 129 $(GNUCOPY) $< $@ 130 131$(DESTDIRDLL)/%$(MY_DLLPOSTFIX) : $(DLLOUT)/%$(MY_DLLPOSTFIX) 132 @@-rm -f $@ 133 $(GNUCOPY) $(DLLOUT)/$(@:f) $@ 134 135$(DESTDIRJAR)/com/sun/star/lib/loader/%.class : $(CLASSDIR)/com/sun/star/lib/loader/%.class 136 @@-$(RM) $(@:db).class 137 $(COPY) $(<:db).class $(@:d) 138# deal with subclasses 139 @@-$(RM) $(@:db)$(EMQ)$$*.class 140 -$(COPY) $(<:db)$(EMQ)$$*.class $(@:d) 141 142$(DESTDIRIDL)/% : $(IDLOUT)/% 143 $(MY_TEXTCOPY) $< $@ 144# @touch $(IDL_DOCU_CLEANUP_FLAG) 145 146$(DESTDIRINC)/udkversion.mk : 147 @@-rm -f $@ 148 @echo #UDK version number > $@ 149 @echo #major >> $@ 150 @echo UDK_MAJOR=$(UDK_MAJOR) >> $@ 151 @echo #minor >> $@ 152 @echo UDK_MINOR=$(UDK_MINOR) >> $@ 153 @echo #micro >> $@ 154 @echo UDK_MICRO=$(UDK_MICRO) >> $@ 155 156$(DESTDIRINC)/% : $(INCOUT)/% 157 $(MY_TEXTCOPY) $< $@ 158 159$(DESTDIRLIB)/%.lib : $(LIBOUT)/%.lib 160 @@-rm -f $@ 161 $(GNUCOPY) $(LIBOUT)/$(@:f) $@ 162 163$(DESTDIRLIB)/%.a : $(LIBOUT)/%.a 164 @@-rm -f $@ 165 $(GNUCOPY) $(LIBOUT)/$(@:f) $@ 166 167$(DIR_CREATE_FLAG) : 168 $(TYPE) $(mktmp $(DIR_DIRECTORY_LIST)) | xargs -n 20 $(MKDIRHIER) && echo "dirs created" > $@ && touch $@ 169 $(DELAY) 2 170 171$(DESTDIRSETTINGS)/component.uno.def : $(PRJ)/settings/component.uno.def 172 @@-rm -f $@ 173 $(MY_TEXTCOPY) $< $@ 174 175$(DESTDIRSETTINGS)/component.uno.map : $(SOLARENV)/bin/addsym.awk $(SOLARENV)/src/component.map 176 @@-$(RM) -f $@ 177.IF "$(COMID)"=="gcc3" 178 tr -d "\015" < $(SOLARENV)/src/component.map | $(AWK) -f $(SOLARENV)/bin/addsym.awk > $@ 179.IF "$(OS)"=="MACOSX" 180 tr -d "\015" < $(SOLARENV)/src/component.map | tail -n +3 | head -3 | sed -e 's/.*component/_component/g' -e 's/;[ ]*//' > $@ 181.ENDIF 182.ELSE # "$(COMID)"=="gcc3" 183 tr -d "\015" < $(SOLARENV)/src/component.map > $@ 184.ENDIF # "$(COMID)"=="gcc3" 185 @chmod 664 $@ 186 187$(DIR_FILE_LIST) : $(DIR_CREATE_FLAG) 188 189$(DIR_FILE_FLAG) : $(DIR_FILE_LIST) 190 @echo "must be zipped" > $@ 191 192 193 194