Help check: validate the help files on compilation against a derivated docbook schema
[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 = libscihelptools-algo.la \
24         $(top_builddir)/modules/jvm/libscijvm.la
25
26 if GIWS
27 BUILT_SOURCES=giws
28 endif
29
30 else
31 GATEWAY_C_SOURCES = sci_gateway/nogui/nogui.c
32 endif
33
34 else
35 GATEWAY_C_SOURCES = sci_gateway/nogui/nogui.c
36 endif
37
38 pkglib_LTLIBRARIES = libscihelptools.la
39 noinst_LTLIBRARIES = libscihelptools-algo.la
40
41 libscihelptools_la_CFLAGS=      -I$(srcdir)/includes/ \
42                                 -I$(top_srcdir)/modules/output_stream/includes/ \
43                                 -I$(top_srcdir)/modules/api_scilab/includes \
44                                 -I$(top_srcdir)/modules/jvm/includes
45
46
47 libscihelptools_la_CPPFLAGS= $(JAVA_JNI_INCLUDE) \
48                                 -I$(srcdir)/src/jni/ \
49                                 -I$(srcdir)/includes/ \
50                                 -I$(top_srcdir)/modules/jvm/includes \
51                                 -I$(top_srcdir)/modules/api_scilab/includes \
52                                 -I$(top_srcdir)/modules/output_stream/includes/
53
54 libscihelptools_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
55
56 libscihelptools_algo_la_SOURCES =  $(HELPTOOLS_SOURCES)
57 libscihelptools_la_SOURCES =  $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
58 libscihelptools_algo_la_CFLAGS = $(libscihelptools_la_CFLAGS)
59 libscihelptools_algo_la_CPPFLAGS = $(libscihelptools_la_CPPFLAGS)
60
61
62 # For the code check (splint)
63 CHECK_SRC= $(GATEWAY_C_SOURCES)
64 INCLUDE_FLAGS = $(libscihelptools_la_CFLAGS)
65
66
67 #### Target ######
68 modulename=helptools
69
70 #### helptools : Conf files ####
71 libscihelptools_la_rootdir = $(mydatadir)
72 libscihelptools_la_root_DATA =  license.txt 
73
74 #### helptools : init scripts ####
75 libscihelptools_la_etcdir = $(mydatadir)/etc
76 libscihelptools_la_etc_DATA = etc/helptools.quit etc/helptools.start etc/MAIN_CHAPTERS etc/fopconf.xml etc/SciDocConf.xml
77
78 #### helptools : bin files ####
79 libscihelptools_la_bindir = $(mydatadir)/bin
80 libscihelptools_la_bin_DATA = bin/scivalid \
81 bin/man2sci \
82 bin/manrev2sci
83
84 #### helptools : gateway declaration ####
85 libscihelptools_la_sci_gatewaydir = $(mydatadir)/sci_gateway
86 libscihelptools_la_sci_gateway_DATA = sci_gateway/helptools_gateway.xml
87
88 #### New documentation generation system
89 libscihelptools_la_data_configurationdir = $(mydatadir)/data/configuration
90 libscihelptools_la_data_configuration_DATA = data/configuration/scilab_primitives.txt \
91 data/configuration/scilab_macros.txt
92
93 libscihelptools_la_data_templatedir = $(mydatadir)/data/template
94 libscihelptools_la_data_template_DATA = data/template/template_javahelp.html
95 libscihelptools_la_data_cssdir = $(mydatadir)/data/css
96 libscihelptools_la_data_css_DATA = data/css/scilab_code.css \
97 data/css/c_code.css \
98 data/css/xml_code.css \
99 data/css/style.css
100
101 #### helptools : xsl files ####
102 libscihelptools_la_xsl_convertdir = $(mydatadir)/xsl/convert
103 libscihelptools_la_xsl_convert_DATA = \
104 xsl/convert/man2manrev.xsl \
105 xsl/convert/manrev2sci.xsl
106
107 libscihelptools_la_xsl_fodir = $(mydatadir)/xsl/fo
108 libscihelptools_la_xsl_fo_DATA = xsl/fo/docbook.xsl
109
110
111 #### helptools : schema files ####
112 libscihelptools_la_schemadir = $(mydatadir)/schema
113 libscihelptools_la_schema_DATA = schema/docbook.rng \
114 schema/dbits.rng \
115 schema/mathml3-common.rng \
116 schema/docbookxi.rng \
117 schema/mathml3-content.rng \
118 schema/mathml3.rng \
119 schema/scilab.rng \
120 schema/mathml3-presentation.rng \
121 schema/extendedStyle.xsl
122
123 #### helptools : pages files ####
124 libscihelptools_la_data_pagesdir = $(mydatadir)/data/pages
125 libscihelptools_la_data_pages_DATA = data/pages/error.html \
126 data/pages/homepage-en_US.html \
127 data/pages/homepage-fr_FR.html \
128 data/pages/ban-en_US.png \
129 data/pages/ban-fr_FR.png
130
131 include $(top_srcdir)/Makefile.incl.am
132