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 28PRJ=../.. 29PRJNAME=odk 30TARGET=copying 31 32#---------------------------------------------------------------- 33.INCLUDE: settings.mk 34.INCLUDE: $(PRJ)/util/makefile.pmk 35#---------------------------------------------------------------- 36 37IDLLIST:={$(subst,/,/ $(shell @$(FIND) $(IDLOUT)/com -type f))} 38DESTIDLLIST={$(subst,$(IDLOUT),$(DESTDIRIDL) $(IDLLIST))} 39 40DESTINCLUDELIST={$(subst,$(SOLARINCDIR),$(DESTDIRINC) $(INCLUDELIST))} 41DESTINCLUDELIST+=$(DESTDIRINC)/udkversion.mk 42 43DESTINCDIRLIST={$(subst,$(INCOUT),$(DESTDIRINC) $(INCLUDEDIRLIST))} 44 45IDL_DOCU_INDEX_FILE = $(DESTDIRGENIDLREF)/module-ix.html 46IDL_DOCU_CLEANUP_FLAG = $(MISC)/idl_docu_cleanup.flag 47 48IDL_CHAPTER_REFS=idl_chapter_refs.txt 49 50EXELIST = \ 51 $(DESTDIRBIN)/cppumaker$(EXEPOSTFIX) \ 52 $(DESTDIRBIN)/regcompare$(EXEPOSTFIX) \ 53 $(DESTDIRBIN)/ucpp$(EXEPOSTFIX) \ 54 $(DESTDIRBIN)/idlc$(EXEPOSTFIX) \ 55 $(DESTDIRBIN)/javamaker$(EXEPOSTFIX) \ 56 $(DESTDIRBIN)/autodoc$(EXEPOSTFIX) \ 57 $(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) \ 58 $(DESTDIRBIN)/uno-skeletonmaker$(EXEPOSTFIX) 59 60.IF "$(GUI)"=="WNT" 61EXELIST += \ 62 $(DESTDIRBIN)/climaker$(EXEPOSTFIX) 63.ENDIF 64 65.IF "$(GUI)"=="WNT" 66CLILIST = \ 67 $(DESTDIRCLI)/cli_basetypes.dll \ 68 $(DESTDIRCLI)/cli_uretypes.dll \ 69 $(DESTDIRCLI)/cli_oootypes.dll \ 70 $(DESTDIRCLI)/cli_ure.dll \ 71 $(DESTDIRCLI)/cli_cppuhelper.dll 72.ENDIF 73 74 75.IF "$(GUI)"=="WNT" 76LIBLIST = \ 77 $(DESTDIRLIB)/istore.lib \ 78 $(DESTDIRLIB)/ireg.lib \ 79 $(DESTDIRLIB)/isal.lib \ 80 $(DESTDIRLIB)/isalhelper.lib \ 81 $(DESTDIRLIB)/icppu.lib \ 82 $(DESTDIRLIB)/icppuhelper.lib \ 83 $(DESTDIRLIB)/irmcxt.lib \ 84 $(DESTDIRLIB)/ipurpenvhelper3MSC.lib 85 86.IF "$(COMEX)"=="8" 87 LIBLIST += $(DESTDIRLIB)/stlport_vc7.lib 88.ELIF "$(COMEX)"=="10" || "$(COMEX)"=="11" || "$(COMEX)"=="12" 89 LIBLIST += $(DESTDIRLIB)/stlport_vc71.lib 90.ELSE 91 LIBLIST += $(DESTDIRLIB)/stlport_vc6.lib 92.ENDIF 93.ENDIF 94 95.IF "$(OS)"=="LINUX" 96 LIBLIST = $(DESTDIRLIB)/libsalcpprt.a 97.ENDIF 98 99# note, that inner class files are copied implicitly 100DESTCLASSESLIST= \ 101 $(DESTDIRJAR)/com/sun/star/lib/loader/Loader.class \ 102 $(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder.class \ 103 $(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKey.class \ 104 $(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKeyException.class 105# $(DESTDIRJAR)/com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class \ 106# $(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class \ 107 108SETTINGSLIST= \ 109 $(DESTDIRSETTINGS)/settings.mk \ 110 $(DESTDIRSETTINGS)/std.mk \ 111 $(DESTDIRSETTINGS)/stdtarget.mk \ 112 $(DESTDIRSETTINGS)/dk.mk 113 114 115.IF "$(GUI)"=="WNT" 116SETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.def 117.ENDIF 118 119.IF "$(GUI)"=="UNX" 120SETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.map 121.ENDIF 122 123 124DOCUHTMLFILES+= \ 125 $(DESTDIR)/index.html \ 126 $(DESTDIRDOCU)/tools.html \ 127 $(DESTDIRDOCU)/notsupported.html \ 128 $(DESTDIRDOCU)/install.html \ 129 $(DESTDIREXAMPLES)/examples.html \ 130 $(DESTDIREXAMPLES)/DevelopersGuide/examples.html 131 132DOCUFILES= \ 133 $(DOCUHTMLFILES) \ 134 $(DESTDIRDOCU)/sdk_styles.css \ 135 $(DESTDIRGENIDLREF)/idl.css \ 136 $(DESTDIRDOCUIMAGES)/nada.gif \ 137 $(DESTDIRDOCUIMAGES)/arrow-2.gif \ 138 $(DESTDIRDOCUIMAGES)/bluball.gif \ 139 $(DESTDIRDOCUIMAGES)/orc-main-app_32.png \ 140 $(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \ 141 $(DESTDIRDOCUIMAGES)/odk-footer-logo.gif \ 142 $(DESTDIRDOCUIMAGES)/arrow-1.gif \ 143 $(DESTDIRDOCUIMAGES)/arrow-3.gif \ 144 $(DESTDIRDOCUIMAGES)/bg_table.png \ 145 $(DESTDIRDOCUIMAGES)/bg_table2.png \ 146 $(DESTDIRDOCUIMAGES)/bg_table3.png \ 147 $(DESTDIRDOCUIMAGES)/nav_down.png \ 148 $(DESTDIRDOCUIMAGES)/nav_home.png \ 149 $(DESTDIRDOCUIMAGES)/nav_left.png \ 150 $(DESTDIRDOCUIMAGES)/nav_right.png \ 151 $(DESTDIRDOCUIMAGES)/nav_up.png \ 152 $(DESTDIRDOCUIMAGES)/sdk_head-1.png \ 153 $(DESTDIRDOCUIMAGES)/sdk_head-2.png \ 154 $(DESTDIRDOCUIMAGES)/sdk_line-1.gif \ 155 $(DESTDIRDOCUIMAGES)/sdk_line-2.gif 156 157.IF "$(GUI)"=="UNX" 158INSTALLSCRIPT= \ 159 $(DESTDIR)/config.guess \ 160 $(DESTDIR)/config.sub \ 161 $(DESTDIR)/configure.pl \ 162 $(DESTDIR)/setsdkenv_unix \ 163 $(DESTDIR)/setsdkenv_unix.sh.in \ 164 $(DESTDIR)/setsdkenv_unix.csh.in 165.ELSE 166INSTALLSCRIPT= \ 167 $(DESTDIR)/setsdkenv_windows.bat \ 168 $(DESTDIR)/setsdkenv_windows.template \ 169 $(DESTDIR)/setsdkname.bat \ 170 $(DESTDIR)/cfgWin.js 171.ENDIF 172 173DIR_FILE_LIST=\ 174 $(EXELIST) \ 175 $(CLILIST) \ 176 $(LIBLIST) \ 177 $(SETTINGSLIST) \ 178 $(DOCUFILES) \ 179 $(INSTALLSCRIPT) \ 180 $(DESTIDLLIST) \ 181 $(DESTINCLUDELIST) \ 182 $(DESTCLASSESLIST) \ 183 $(IDL_DOCU_INDEX_FILE) \ 184 $(CONVERTTAGFLAG) 185 186.IF "$(OS)"=="MACOSX" 187DIR_FILE_LIST += $(DESTDIRBIN)/addsym-macosx.sh 188.ENDIF 189 190.IF "$(SOLAR_JAVA)" != "" 191DIR_FILE_LIST += $(DESTDIRJAR)/win/unowinreg.dll 192.ENDIF 193 194DIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d)) 195DIR_CREATE_FLAG:=$(MISC)/copying_dirs_created.txt 196DIR_FILE_FLAG:=$(MISC)/copying_files.txt 197 198.IF "$(SOLAR_JAVA)" != "" 199# Special work for simple uno bootstrap mechanism 200# zip uno loader class files and winreg helper library for later 201# use in the build process (e.g. helper tools) 202MYZIPTARGET=$(BIN)/uno_loader_classes.zip 203MYZIPFLAGS=-u -r 204MYZIPDIR=$(DESTDIRJAR) 205MYZIPLIST=com/* win/* 206 207.ENDIF 208 209#-------------------------------------------------- 210# TARGETS 211#-------------------------------------------------- 212 213.IF "$(L10N_framework)"=="" 214 215all : CLEAN_DKVERSION_CHECK \ 216 $(DIR_FILE_LIST) \ 217 $(DIR_FILE_FLAG) \ 218 219.ENDIF 220 221#-------------------------------------------------- 222# use global rules 223#-------------------------------------------------- 224.INCLUDE: $(PRJ)/util/odk_rules.pmk 225 226 227CLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)/dk.mk 228 229 230CLEAN_DKVERSION_CHECK: 231 @@-rm -f $(CLEANUP_DKVERSION_FILE) 232 233$(DESTDIRBIN)/addsym-macosx.sh : addsym-macosx.sh 234 @@-rm -f $@ 235 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@ 236 -chmod 755 $@ 237 238$(DESTDIRSETTINGS)/dk.mk : dk.mk 239 @@-rm -f $@ 240 -$(MKDIRHIER) $(@:d) 241 tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/'> $@ 242 243$(CONVERTTAGFLAG) : $(DOCUHTMLFILES) 244# $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES) 245 @echo "tags converted" > $@ 246 247$(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(PRJ)/docs/common/ref/idl.css $(DESTIDLLIST) 248 @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF) 249 $(TOUCH) $@ 250 251$(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG) 252 -$(MKDIRHIER) $(@:d) 253 $(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" \ 254 -name $(IDLDOCREFNAME) -lg idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL) 255 -rm $(@:d)/idl.css 256 $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)/docs/common/ref/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)/idl.css 257 258 259.IF "$(SOLAR_JAVA)" != "" 260$(MYZIPTARGET) : $(BIN)/unowinreg.dll $(DESTCLASSESLIST) 261 cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ../../../bin/$(MYZIPTARGET:b) $(MYZIPLIST) 262.ENDIF 263