Last updates
[scilab.git] / scilab / modules / helptools / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2008 - INRIA - Sylvestre LEDRU
3 #
4 # This file is distributed under the same license as the Scilab package.
5
6 if GUI
7 if BUILD_HELP
8
9 USEANT=1
10
11 HELPTOOLS_SOURCES = src/jni/BuildDocObject.cpp \
12         src/jni/SciDocMain.cpp \
13         src/jni/GiwsException.cpp
14
15 GATEWAY_C_SOURCES = sci_gateway/c/gw_helptools.c
16
17 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_buildDoc.cpp \
18         sci_gateway/cpp/sci_buildDocv2.cpp
19
20 GIWS_WRAPPERS = src/jni/BuildDocObject.giws.xml \
21         src/jni/BuildDocObjectv2.giws.xml
22
23 libscihelptools_la_LIBADD = $(top_builddir)/modules/jvm/libscijvm.la
24
25 if GIWS
26 BUILT_SOURCES=giws
27 endif
28
29 else
30 GATEWAY_C_SOURCES = sci_gateway/nogui/nogui.c
31 endif
32
33 else
34 GATEWAY_C_SOURCES = sci_gateway/nogui/nogui.c
35 endif
36
37 pkglib_LTLIBRARIES = libscihelptools.la
38
39 libscihelptools_la_CFLAGS=      -I$(srcdir)/includes/ \
40                                 -I$(top_srcdir)/modules/output_stream/includes/ \
41                                 -I$(top_srcdir)/modules/api_scilab/includes \
42                                 -I$(top_srcdir)/modules/jvm/includes
43
44
45 libscihelptools_la_CPPFLAGS= $(JAVA_JNI_INCLUDE) \
46                                 -I$(srcdir)/src/jni/ \
47                                 -I$(srcdir)/includes/ \
48                                 -I$(top_srcdir)/modules/jvm/includes \
49                                 -I$(top_srcdir)/modules/api_scilab/includes \
50                                 -I$(top_srcdir)/modules/output_stream/includes/
51
52 libscihelptools_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
53
54 libscihelptools_la_SOURCES =  $(GATEWAY_C_SOURCES) $(HELPTOOLS_SOURCES) $(GATEWAY_CPP_SOURCES)
55
56 # For the code check (splint)
57 CHECK_SRC= $(GATEWAY_C_SOURCES)
58 INCLUDE_FLAGS = $(libscihelptools_la_CFLAGS)
59
60
61 #### Target ######
62 modulename=helptools
63
64 #### helptools : Conf files ####
65 libscihelptools_la_rootdir = $(mydatadir)
66 libscihelptools_la_root_DATA =  license.txt version.xml
67
68 #### helptools : init scripts ####
69 libscihelptools_la_etcdir = $(mydatadir)/etc
70 libscihelptools_la_etc_DATA = etc/helptools.quit etc/helptools.start etc/MAIN_CHAPTERS etc/fopconf.xml etc/SciDocConf.xml
71
72 #### helptools : bin files ####
73 libscihelptools_la_bindir = $(mydatadir)/bin
74 libscihelptools_la_bin_DATA = bin/scivalid \
75 bin/man2sci \
76 bin/manrev2sci
77
78 #### helptools : gateway declaration ####
79 libscihelptools_la_sci_gatewaydir = $(mydatadir)/sci_gateway
80 libscihelptools_la_sci_gateway_DATA = sci_gateway/helptools_gateway.xml
81
82 #### New documentation generation system
83 libscihelptools_la_data_configurationdir = $(mydatadir)/data/configuration
84 libscihelptools_la_data_configuration_DATA = data/configuration/scilab_primitives.txt \
85 data/configuration/scilab_macros.txt
86
87 libscihelptools_la_data_templatedir = $(mydatadir)/data/template
88 libscihelptools_la_data_template_DATA = data/template/template_javahelp.html
89 libscihelptools_la_data_cssdir = $(mydatadir)/data/css
90 libscihelptools_la_data_css_DATA = data/css/scilab_code.css \
91 data/css/c_code.css \
92 data/css/xml_code.css \
93 data/css/style.css
94
95 #### helptools : xsl files ####
96 libscihelptools_la_xsl_convertdir = $(mydatadir)/xsl/convert
97 libscihelptools_la_xsl_convert_DATA = \
98 xsl/convert/man2manrev.xsl \
99 xsl/convert/manrev2sci.xsl
100
101 libscihelptools_la_xsl_fodir = $(mydatadir)/xsl/fo
102 libscihelptools_la_xsl_fo_DATA = xsl/fo/docbook.xsl
103
104
105 #### helptools : schema files ####
106 libscihelptools_la_schemadir = $(mydatadir)/schema
107 libscihelptools_la_schema_DATA = schema/scilab.rnc \
108 schema/extendedStyle.xsl
109
110 #### helptools : pages files ####
111 libscihelptools_la_data_pagesdir = $(mydatadir)/data/pages
112 libscihelptools_la_data_pages_DATA = data/pages/error.html \
113 data/pages/homepage-en_US.html \
114 data/pages/homepage-fr_FR.html \
115 data/pages/ban-en_US.png \
116 data/pages/ban-fr_FR.png
117
118 include $(top_srcdir)/Makefile.incl.am
119