xref: /aoo41x/main/odk/pack/copying/makefile.mk (revision 9cb05e42)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweirPRJ=../..
25cdf0e10cSrcweirPRJNAME=odk
26cdf0e10cSrcweirTARGET=copying
27cdf0e10cSrcweir
28cdf0e10cSrcweir#----------------------------------------------------------------
29cdf0e10cSrcweir.INCLUDE: settings.mk
30cdf0e10cSrcweir.INCLUDE: $(PRJ)/util/makefile.pmk
31cdf0e10cSrcweir#----------------------------------------------------------------
32cdf0e10cSrcweir
33a9f7a386SJürgen SchmidtSCM_ROOT_PATH=$(shell dirname $(SRC_ROOT))
34a9f7a386SJürgen SchmidtSCMREVISION=$(shell $(PERL) -I$(SOLARENV)/bin/modules -e "use SvnRevision; print SvnRevision::DetectRevisionId(\"$(SCM_ROOT_PATH)\")")
35a9f7a386SJürgen Schmidt
36cdf0e10cSrcweirIDLLIST:={$(subst,/,/ $(shell @$(FIND) $(IDLOUT)/com -type f))}
37cdf0e10cSrcweirDESTIDLLIST={$(subst,$(IDLOUT),$(DESTDIRIDL) $(IDLLIST))}
38cdf0e10cSrcweir
39cdf0e10cSrcweirDESTINCLUDELIST={$(subst,$(SOLARINCDIR),$(DESTDIRINC) $(INCLUDELIST))}
40cdf0e10cSrcweirDESTINCLUDELIST+=$(DESTDIRINC)/udkversion.mk
41cdf0e10cSrcweir
42cdf0e10cSrcweirDESTINCDIRLIST={$(subst,$(INCOUT),$(DESTDIRINC) $(INCLUDEDIRLIST))}
43cdf0e10cSrcweir
44cdf0e10cSrcweirIDL_DOCU_INDEX_FILE = $(DESTDIRGENIDLREF)/module-ix.html
45cdf0e10cSrcweirIDL_DOCU_CLEANUP_FLAG = $(MISC)/idl_docu_cleanup.flag
46cdf0e10cSrcweir
47cdf0e10cSrcweirIDL_CHAPTER_REFS=idl_chapter_refs.txt
48cdf0e10cSrcweir
49cdf0e10cSrcweirEXELIST = \
50cdf0e10cSrcweir	$(DESTDIRBIN)/cppumaker$(EXEPOSTFIX) 	\
51cdf0e10cSrcweir	$(DESTDIRBIN)/regcompare$(EXEPOSTFIX) 	\
525979ef3cSJürgen Schmidt	$(DESTDIRBIN)/ucpp$(EXEPOSTFIX) 	\
53cdf0e10cSrcweir	$(DESTDIRBIN)/idlc$(EXEPOSTFIX) 	\
54cdf0e10cSrcweir	$(DESTDIRBIN)/javamaker$(EXEPOSTFIX) 	\
55cdf0e10cSrcweir	$(DESTDIRBIN)/autodoc$(EXEPOSTFIX) \
56cdf0e10cSrcweir	$(DESTDIRBIN)/unoapploader$(EXEPOSTFIX) \
57cdf0e10cSrcweir	$(DESTDIRBIN)/uno-skeletonmaker$(EXEPOSTFIX)
58cdf0e10cSrcweir
59cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
60cdf0e10cSrcweirEXELIST += \
61cdf0e10cSrcweir	$(DESTDIRBIN)/climaker$(EXEPOSTFIX)
62cdf0e10cSrcweir.ENDIF
63cdf0e10cSrcweir
64cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
65cdf0e10cSrcweirCLILIST = \
66cdf0e10cSrcweir	$(DESTDIRCLI)/cli_basetypes.dll 	\
67cdf0e10cSrcweir	$(DESTDIRCLI)/cli_uretypes.dll 	\
68cdf0e10cSrcweir	$(DESTDIRCLI)/cli_oootypes.dll 	\
69cdf0e10cSrcweir	$(DESTDIRCLI)/cli_ure.dll 	\
70cdf0e10cSrcweir	$(DESTDIRCLI)/cli_cppuhelper.dll
71cdf0e10cSrcweir.ENDIF
72cdf0e10cSrcweir
73cdf0e10cSrcweir
74cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
75cdf0e10cSrcweirLIBLIST = \
76cdf0e10cSrcweir	$(DESTDIRLIB)/istore.lib 	\
77cdf0e10cSrcweir	$(DESTDIRLIB)/ireg.lib 	\
78cdf0e10cSrcweir	$(DESTDIRLIB)/isal.lib 	\
79cdf0e10cSrcweir	$(DESTDIRLIB)/isalhelper.lib 	\
80cdf0e10cSrcweir	$(DESTDIRLIB)/icppu.lib 	\
81cdf0e10cSrcweir	$(DESTDIRLIB)/icppuhelper.lib 	\
82cdf0e10cSrcweir	$(DESTDIRLIB)/irmcxt.lib \
83cdf0e10cSrcweir	$(DESTDIRLIB)/ipurpenvhelper3MSC.lib
84cdf0e10cSrcweir
85cdf0e10cSrcweir.IF "$(COMEX)"=="8"
86cdf0e10cSrcweir	LIBLIST += $(DESTDIRLIB)/stlport_vc7.lib
87cdf0e10cSrcweir.ELIF "$(COMEX)"=="10" || "$(COMEX)"=="11" || "$(COMEX)"=="12"
88cdf0e10cSrcweir	LIBLIST += $(DESTDIRLIB)/stlport_vc71.lib
89cdf0e10cSrcweir.ELSE
90cdf0e10cSrcweir	LIBLIST += $(DESTDIRLIB)/stlport_vc6.lib
91cdf0e10cSrcweir.ENDIF
92cdf0e10cSrcweir.ENDIF
93cdf0e10cSrcweir
94cdf0e10cSrcweir.IF "$(OS)"=="LINUX"
95cdf0e10cSrcweir	LIBLIST = $(DESTDIRLIB)/libsalcpprt.a
96cdf0e10cSrcweir.ENDIF
97cdf0e10cSrcweir
98cdf0e10cSrcweir# note, that inner class files are copied implicitly
99cdf0e10cSrcweirDESTCLASSESLIST= \
100cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/Loader.class \
101cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder.class \
102cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKey.class \
103cdf0e10cSrcweir	$(DESTDIRJAR)/com/sun/star/lib/loader/WinRegKeyException.class
104cdf0e10cSrcweir#	$(DESTDIRJAR)/com/sun/star/lib/loader/Loader$$CustomURLClassLoader.class \
105cdf0e10cSrcweir#	$(DESTDIRJAR)/com/sun/star/lib/loader/InstallationFinder$$StreamGobbler.class \
106cdf0e10cSrcweir
107cdf0e10cSrcweirSETTINGSLIST= \
108cdf0e10cSrcweir	$(DESTDIRSETTINGS)/settings.mk \
109*9cb05e42SAriel Constenla-Haile	$(DESTDIRSETTINGS)/platform.mk \
110cdf0e10cSrcweir	$(DESTDIRSETTINGS)/std.mk \
111cdf0e10cSrcweir	$(DESTDIRSETTINGS)/stdtarget.mk \
112cdf0e10cSrcweir	$(DESTDIRSETTINGS)/dk.mk
113cdf0e10cSrcweir
114cdf0e10cSrcweir
115cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
116cdf0e10cSrcweirSETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.def
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
120cdf0e10cSrcweirSETTINGSLIST+=$(DESTDIRSETTINGS)/component.uno.map
121cdf0e10cSrcweir.ENDIF
122cdf0e10cSrcweir
123cdf0e10cSrcweir
124cdf0e10cSrcweirDOCUHTMLFILES+= \
125cdf0e10cSrcweir	$(DESTDIR)/index.html \
126cdf0e10cSrcweir	$(DESTDIRDOCU)/tools.html \
127cdf0e10cSrcweir	$(DESTDIRDOCU)/notsupported.html \
128cdf0e10cSrcweir	$(DESTDIRDOCU)/install.html \
129cdf0e10cSrcweir	$(DESTDIREXAMPLES)/examples.html \
130cdf0e10cSrcweir	$(DESTDIREXAMPLES)/DevelopersGuide/examples.html
131cdf0e10cSrcweir
132cdf0e10cSrcweirDOCUFILES= \
133cdf0e10cSrcweir	$(DOCUHTMLFILES) \
134cdf0e10cSrcweir	$(DESTDIRDOCU)/sdk_styles.css \
135cdf0e10cSrcweir	$(DESTDIRGENIDLREF)/idl.css \
136cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nada.gif \
137cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/arrow-2.gif \
138cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bluball.gif \
139cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/ooo-main-app_32.png \
140cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/odk-footer-logo.gif \
141cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/arrow-1.gif \
142cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/arrow-3.gif \
143cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bg_table.png \
144cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bg_table2.png \
145cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/bg_table3.png \
146cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_down.png \
147cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_home.png \
148cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_left.png \
149cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_right.png \
150cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/nav_up.png \
151cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_head-1.png \
152cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_head-2.png \
153cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_line-1.gif \
154cdf0e10cSrcweir	$(DESTDIRDOCUIMAGES)/sdk_line-2.gif
155cdf0e10cSrcweir
156cdf0e10cSrcweir.IF "$(GUI)"=="UNX"
157cdf0e10cSrcweirINSTALLSCRIPT= \
158cdf0e10cSrcweir	$(DESTDIR)/config.guess \
159cdf0e10cSrcweir	$(DESTDIR)/config.sub \
160cdf0e10cSrcweir	$(DESTDIR)/configure.pl \
161cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_unix \
162cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_unix.sh.in \
163cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_unix.csh.in
164cdf0e10cSrcweir.ELSE
165cdf0e10cSrcweirINSTALLSCRIPT= \
166cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_windows.bat \
167cdf0e10cSrcweir	$(DESTDIR)/setsdkenv_windows.template \
168cdf0e10cSrcweir	$(DESTDIR)/setsdkname.bat \
169cdf0e10cSrcweir	$(DESTDIR)/cfgWin.js
170cdf0e10cSrcweir.ENDIF
171cdf0e10cSrcweir
172cdf0e10cSrcweirDIR_FILE_LIST=\
173cdf0e10cSrcweir	$(EXELIST) \
174cdf0e10cSrcweir	$(CLILIST) \
175cdf0e10cSrcweir	$(LIBLIST) \
176cdf0e10cSrcweir	$(SETTINGSLIST) \
177cdf0e10cSrcweir	$(DOCUFILES) \
178cdf0e10cSrcweir	$(INSTALLSCRIPT) \
179cdf0e10cSrcweir	$(DESTIDLLIST)  \
180cdf0e10cSrcweir	$(DESTINCLUDELIST) \
181cdf0e10cSrcweir	$(DESTCLASSESLIST) \
182cdf0e10cSrcweir    $(IDL_DOCU_INDEX_FILE) \
183cdf0e10cSrcweir    $(CONVERTTAGFLAG)
184cdf0e10cSrcweir
185cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
186cdf0e10cSrcweirDIR_FILE_LIST += $(DESTDIRBIN)/addsym-macosx.sh
187cdf0e10cSrcweir.ENDIF
188cdf0e10cSrcweir
189cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" != ""
190cdf0e10cSrcweirDIR_FILE_LIST += $(DESTDIRJAR)/win/unowinreg.dll
191cdf0e10cSrcweir.ENDIF
192cdf0e10cSrcweir
193cdf0e10cSrcweirDIR_DIRECTORY_LIST:=$(uniq $(DIR_FILE_LIST:d))
194cdf0e10cSrcweirDIR_CREATE_FLAG:=$(MISC)/copying_dirs_created.txt
195cdf0e10cSrcweirDIR_FILE_FLAG:=$(MISC)/copying_files.txt
196cdf0e10cSrcweir
197cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" != ""
198cdf0e10cSrcweir# Special work for simple uno bootstrap mechanism
199cdf0e10cSrcweir# zip uno loader class files and winreg helper library for later
200cdf0e10cSrcweir# use in the build process (e.g. helper tools)
201cdf0e10cSrcweirMYZIPTARGET=$(BIN)/uno_loader_classes.zip
202cdf0e10cSrcweirMYZIPFLAGS=-u -r
203cdf0e10cSrcweirMYZIPDIR=$(DESTDIRJAR)
204cdf0e10cSrcweirMYZIPLIST=com/* win/*
205cdf0e10cSrcweir
206cdf0e10cSrcweir.ENDIF
207cdf0e10cSrcweir
208cdf0e10cSrcweir#--------------------------------------------------
209cdf0e10cSrcweir# TARGETS
210cdf0e10cSrcweir#--------------------------------------------------
211cdf0e10cSrcweir
212cdf0e10cSrcweir.IF "$(L10N_framework)"==""
213cdf0e10cSrcweir
214cdf0e10cSrcweirall : CLEAN_DKVERSION_CHECK \
215cdf0e10cSrcweir	$(DIR_FILE_LIST) \
216cdf0e10cSrcweir	$(DIR_FILE_FLAG) \
217cdf0e10cSrcweir
218cdf0e10cSrcweir.ENDIF
219cdf0e10cSrcweir
220cdf0e10cSrcweir#--------------------------------------------------
221cdf0e10cSrcweir# use global rules
222cdf0e10cSrcweir#--------------------------------------------------
223cdf0e10cSrcweir.INCLUDE: $(PRJ)/util/odk_rules.pmk
224cdf0e10cSrcweir
225cdf0e10cSrcweir
226cdf0e10cSrcweirCLEANUP_DKVERSION_FILE=$(DESTDIRSETTINGS)/dk.mk
227cdf0e10cSrcweir
228cdf0e10cSrcweir
229cdf0e10cSrcweirCLEAN_DKVERSION_CHECK:
230cdf0e10cSrcweir	@@-rm -f $(CLEANUP_DKVERSION_FILE)
231cdf0e10cSrcweir
232cdf0e10cSrcweir$(DESTDIRBIN)/addsym-macosx.sh : addsym-macosx.sh
233cdf0e10cSrcweir	@@-rm -f $@
234cdf0e10cSrcweir	$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $< $(MY_TEXTCOPY_TARGETPRE) $@
235cdf0e10cSrcweir	-chmod 755 $@
236cdf0e10cSrcweir
237cdf0e10cSrcweir$(DESTDIRSETTINGS)/dk.mk : dk.mk
238cdf0e10cSrcweir	@@-rm -f $@
239cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
240a9f7a386SJürgen Schmidt	tr -d "\015" < dk.mk | sed -e 's/@@RELEASE@@/$(PRODUCT_RELEASE)/' -e 's/@@BUILDID@@/$(RSCREVISION)/' -e 's/@@SCMREVISION@@/$(SCMREVISION)/'> $@
241cdf0e10cSrcweir
242cdf0e10cSrcweir$(CONVERTTAGFLAG) : $(DOCUHTMLFILES)
243cdf0e10cSrcweir#    $(PERL) $(CONVERTTAGSCRIPT) 1 "$(TITLE)" "$(OFFICEPRODUCTNAME)" $(DOCUHTMLFILES)
244cdf0e10cSrcweir    @echo "tags converted" > $@
245cdf0e10cSrcweir
246cdf0e10cSrcweir$(IDL_DOCU_CLEANUP_FLAG) : $(IDL_CHAPTER_REFS) $(PRJ)/docs/common/ref/idl.css $(DESTIDLLIST)
247cdf0e10cSrcweir	@@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENIDLREF)
248cdf0e10cSrcweir	$(TOUCH) $@
249cdf0e10cSrcweir
250cdf0e10cSrcweir$(IDL_DOCU_INDEX_FILE) : $(IDL_DOCU_CLEANUP_FLAG)
251cdf0e10cSrcweir	-$(MKDIRHIER) $(@:d)
252cdf0e10cSrcweir	$(MY_AUTODOC) -html $(DESTDIRGENIDLREF) -dvgroot "http://wiki.services.openoffice.org/wiki" \
253cdf0e10cSrcweir		-name $(IDLDOCREFNAME) -lg idl -dvgfile $(IDL_CHAPTER_REFS) -t $(DESTDIRIDL)
254cdf0e10cSrcweir	-rm $(@:d)/idl.css
255cdf0e10cSrcweir	$(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)/docs/common/ref/idl.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)/idl.css
256cdf0e10cSrcweir
257cdf0e10cSrcweir
258cdf0e10cSrcweir.IF "$(SOLAR_JAVA)" != ""
259cdf0e10cSrcweir$(MYZIPTARGET) : $(BIN)/unowinreg.dll $(DESTCLASSESLIST)
260cdf0e10cSrcweir    cd $(MYZIPDIR) && zip $(MYZIPFLAGS) ../../../bin/$(MYZIPTARGET:b) $(MYZIPLIST)
261cdf0e10cSrcweir.ENDIF
262