merge the formfield patch from ooo-build
[ooovba.git] / xmlhelp / source / com / sun / star / help / makefile.mk
blob751d2448b614981a0e517c3497471601f5035ad9
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.38 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ = ..$/..$/..$/..$/..
33 PRJNAME = xmlhelp
34 TARGET = HelpLinker
35 LIBBASENAME = helplinker
36 PACKAGE = com$/sun$/star$/help
37 TARGETTYPE=CUI
39 # --- Settings -----------------------------------------------------
41 .INCLUDE : settings.mk
42 .INCLUDE : helplinker.pmk
44 .IF "$(SOLAR_JAVA)"=="TRUE"
46 .IF "$(SYSTEM_LIBXSLT)" == "YES"
47 CFLAGS+= $(LIBXSLT_CFLAGS)
48 .ELSE
49 LIBXSLTINCDIR=external$/libxslt
50 CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXSLTINCDIR)
51 .ENDIF
53 .IF "$(SYSTEM_DB)" == "YES"
54 CFLAGS+=-DSYSTEM_DB -I$(DB_INCLUDES)
55 .ENDIF
57 .IF "$(SYSTEM_EXPAT)" == "YES"
58 CFLAGS+=-DSYSTEM_EXPAT
59 .ENDIF
62 JAVACLASSFILES = \
63 $(SOLARBINDIR)$/help$/$(PACKAGE)$/HelpIndexerTool.class \
64 $(SOLARBINDIR)$/help$/$(PACKAGE)$/HelpFileDocument.class \
65 $(CLASSDIR)$/$(PACKAGE)$/HelpSearch.class \
66 $(CLASSDIR)$/$(PACKAGE)$/HelpComponent.class \
67 $(CLASSDIR)$/$(PACKAGE)$/HelpIndexer.class
69 JAVAFILES = \
70 HelpSearch.java \
71 HelpComponent.java \
72 HelpIndexer.java
74 TRANSEX3FILES = \
75 $(SOLARBINDIR)$/help$/$(PACKAGE)$/HelpIndexerTool.class \
76 $(SOLARBINDIR)$/help$/$(PACKAGE)$/HelpFileDocument.class
78 ADDFILES = $(subst,$(SOLARBINDIR)$/help,$(CLASSDIR) $(TRANSEX3FILES))
80 #JAVAFILES = $(subst,$(CLASSDIR)$/$(PACKAGE)$/, $(subst,.class,.java $(JAVACLASSFILES)))
82 JARFILES = ridl.jar jurt.jar unoil.jar juh.jar HelpIndexerTool.jar
83 .IF "$(SYSTEM_LUCENE)" == "YES"
84 XCLASSPATH!:=$(XCLASSPATH)$(PATH_SEPERATOR)$(LUCENE_CORE_JAR)$(PATH_SEPERATOR)$(LUCENE_ANALYZERS_JAR)
85 COMP=fix_system_lucene
86 .ELSE
87 JARFILES += lucene-core-2.3.jar lucene-analyzers-2.3.jar
88 .ENDIF
90 JARTARGET = LuceneHelpWrapper.jar
91 JARCOMPRESS = TRUE
92 CUSTOMMANIFESTFILE = MANIFEST.MF
94 # --- Targets ------------------------------------------------------
96 .INCLUDE : target.mk
98 ALLTAR : $(ADDFILES)
100 .IF "$(JARTARGETN)"!=""
101 $(JARTARGETN) : $(ADDFILES)
102 $(JARTARGETN) : $(COMP)
103 .ENDIF
105 $(CLASSDIR)$/$(PACKAGE)$/%.class : $(SOLARBINDIR)$/help$/$(PACKAGE)$/%.class
106 $(MKDIRHIER) $(@:d)
107 $(COPY) $< $@
110 fix_system_lucene:
111 @echo "Fix Java Class-Path entry for Lucene libraries from system."
112 @$(SED) -r -e "s#^(Class-Path:).*#\1 file://$(LUCENE_CORE_JAR) file://$(LUCENE_ANALYZERS_JAR)#" \
113 -i ../../../../../$(INPATH)/class/HelpLinker/META-INF/MANIFEST.MF
115 .ELSE
117 .INCLUDE : target.mk
119 .ENDIF