1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=..$/.. 29*cdf0e10cSrcweirPRJNAME=odk 30*cdf0e10cSrcweirTARGET=gendocu 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir#---------------------------------------------------------------- 33*cdf0e10cSrcweir.INCLUDE: settings.mk 34*cdf0e10cSrcweir.INCLUDE: $(PRJ)$/util$/makefile.pmk 35*cdf0e10cSrcweir#---------------------------------------------------------------- 36*cdf0e10cSrcweir.IF "$(L10N_framework)"=="" 37*cdf0e10cSrcweir 38*cdf0e10cSrcweirCPPDOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference" 39*cdf0e10cSrcweirJAVADOCREFNAME="UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) Java API Reference" 40*cdf0e10cSrcweir 41*cdf0e10cSrcweirCPP_DOCU_INDEX_FILE = $(DESTDIRGENCPPREF)$/index.html 42*cdf0e10cSrcweirJAVA_DOCU_INDEX_FILE = $(DESTDIRGENJAVAREF)$/index.html 43*cdf0e10cSrcweir 44*cdf0e10cSrcweirCPP_DOCU_CLEANUP_FLAG = $(MISC)$/cpp_docu_cleanup.flag 45*cdf0e10cSrcweir 46*cdf0e10cSrcweirJAVA_SRC_DIR=$(MISC)$/java_src 47*cdf0e10cSrcweirJAVA_PACKAGES=\ 48*cdf0e10cSrcweir com.sun.star.comp.helper \ 49*cdf0e10cSrcweir com.sun.star.lib.uno.helper \ 50*cdf0e10cSrcweir com.sun.star.lib.unoloader \ 51*cdf0e10cSrcweir com.sun.star.uno \ 52*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/lib$/util$/UrlToFileMapper.java 53*cdf0e10cSrcweir# com.sun.star.beans \ 54*cdf0e10cSrcweir 55*cdf0e10cSrcweirJAVA_SRC_FILES=\ 56*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/jurt_src.zip \ 57*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/juh_src.zip \ 58*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/ridl_src.zip \ 59*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/unoloader_src.zip 60*cdf0e10cSrcweir 61*cdf0e10cSrcweirJAVA_BEAN_SRC_FILES=\ 62*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/ContainerFactory.java \ 63*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/JavaWindowPeerFake.java \ 64*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeConnection.java \ 65*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/LocalOfficeWindow.java \ 66*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeConnection.java \ 67*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/NativeService.java \ 68*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeConnection.java \ 69*cdf0e10cSrcweir $(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/OfficeWindow.java 70*cdf0e10cSrcweir 71*cdf0e10cSrcweirAUTODOCPARAMS= -lg c++ \ 72*cdf0e10cSrcweir -p sal $(INCOUT) -t sal -t osl -t rtl \ 73*cdf0e10cSrcweir -p store $(INCOUT) -t store \ 74*cdf0e10cSrcweir -p registry $(INCOUT) -t registry \ 75*cdf0e10cSrcweir -p cppu $(INCOUT) -t cppu -t com -t typelib -t uno \ 76*cdf0e10cSrcweir -p cppuhelper $(INCOUT) -t cppuhelper \ 77*cdf0e10cSrcweir -p salhelper $(INCOUT) -t salhelper \ 78*cdf0e10cSrcweir -p bridges $(INCOUT) -t bridges 79*cdf0e10cSrcweir 80*cdf0e10cSrcweirJAVADOCPARAMS= -use -splitindex -windowtitle "Java UNO Runtime Reference" -header $(JAVADOCREFNAME) -d $(DESTDIRGENJAVAREF) -sourcepath $(JAVA_SRC_DIR) -classpath $(SOLARBINDIR)$/ridl.jar -linkoffline ../../common/ref ./uno -linkoffline http://java.sun.com/j2se/1.4.1/docs/api ./java $(JAVA_PACKAGES) 81*cdf0e10cSrcweir 82*cdf0e10cSrcweirJAVADOCLOG = $(MISC)$/javadoc_log.txt 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 85*cdf0e10cSrcweirall: \ 86*cdf0e10cSrcweir $(CPP_DOCU_INDEX_FILE) \ 87*cdf0e10cSrcweir $(JAVA_DOCU_INDEX_FILE) 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir.ELSE 90*cdf0e10cSrcweirall: $(CPP_DOCU_INDEX_FILE) 91*cdf0e10cSrcweir.ENDIF 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir$(CPP_DOCU_CLEANUP_FLAG) : $(INCLUDELIST) $(PRJ)$/docs$/cpp$/ref$/cpp.css 95*cdf0e10cSrcweir @@-$(MY_DELETE_RECURSIVE) $(DESTDIRGENCPPREF) 96*cdf0e10cSrcweir $(TOUCH) $@ 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir$(CPP_DOCU_INDEX_FILE) : $(CPP_DOCU_CLEANUP_FLAG) 99*cdf0e10cSrcweir -$(MKDIRHIER) $(@:d) 100*cdf0e10cSrcweir $(MY_AUTODOC) -html $(DESTDIRGENCPPREF) -name $(CPPDOCREFNAME) $(AUTODOCPARAMS) 101*cdf0e10cSrcweir -rm $(@:d:d)$/cpp.css 102*cdf0e10cSrcweir $(MY_TEXTCOPY) $(MY_TEXTCOPY_SOURCEPRE) $(PRJ)$/docs$/cpp$/ref$/cpp.css $(MY_TEXTCOPY_TARGETPRE) $(@:d:d)$/cpp.css 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir$(JAVA_SRC_FILES) : $(SOLARCOMMONBINDIR)$/$$(@:f) 105*cdf0e10cSrcweir -$(MKDIRHIER) $(@:d) 106*cdf0e10cSrcweir $(MY_COPY) $< $@ 107*cdf0e10cSrcweir cd $(JAVA_SRC_DIR) && unzip -quo $(@:f) 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir#$(JAVA_SRC_DIR)$/com$/sun$/star$/beans$/%.java : $(PRJ)$/source$/bean$/com$/sun$/star$/beans$/%.java 110*cdf0e10cSrcweir# -$(MKDIRHIER) $(@:d) 111*cdf0e10cSrcweir# $(MY_COPY) $< $@ 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir#$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES) 114*cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 115*cdf0e10cSrcweir$(JAVA_DOCU_INDEX_FILE) .SEQUENTIAL : $(JAVA_SRC_FILES) 116*cdf0e10cSrcweir -$(MKDIRHIER) $(@:d) 117*cdf0e10cSrcweir $(JAVADOC) -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG) 118*cdf0e10cSrcweir.ENDIF 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir.ELSE 121*cdf0e10cSrcweirpseudo: 122*cdf0e10cSrcweir.ENDIF 123