1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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
= ..
$/..
$/..
$/..
$/..
35 LIBBASENAME
= helplinker
36 PACKAGE
= com
$/sun
$/star
$/help
39 # --- Settings -----------------------------------------------------
41 .INCLUDE
: settings.mk
42 .INCLUDE
: helplinker.pmk
44 .IF
"$(SOLAR_JAVA)"=="TRUE"
46 .IF
"$(SYSTEM_LIBXSLT)" == "YES"
47 CFLAGS
+= $(LIBXSLT_CFLAGS
)
49 LIBXSLTINCDIR
=external
$/libxslt
50 CFLAGS
+= -I
$(SOLARINCDIR
)$/$(LIBXSLTINCDIR
)
53 .IF
"$(SYSTEM_DB)" == "YES"
54 CFLAGS
+=-DSYSTEM_DB
-I
$(DB_INCLUDES
)
57 .IF
"$(SYSTEM_EXPAT)" == "YES"
58 CFLAGS
+=-DSYSTEM_EXPAT
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
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
87 JARFILES
+= lucene-core-2.3.jar lucene-analyzers-2.3.jar
90 JARTARGET
= LuceneHelpWrapper.jar
92 CUSTOMMANIFESTFILE
= MANIFEST.MF
94 # --- Targets ------------------------------------------------------
100 .IF
"$(JARTARGETN)"!=""
101 $(JARTARGETN
) : $(ADDFILES
)
102 $(JARTARGETN
) : $(COMP
)
105 $(CLASSDIR
)$/$(PACKAGE
)$/%.class
: $(SOLARBINDIR
)$/help
$/$(PACKAGE
)$/%.class
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