make distclean really removes all
[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
14 GATEWAY_C_SOURCES = sci_gateway/c/gw_helptools.c
15
16 GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_buildDocv2.cpp
17
18 GIWS_WRAPPERS = src/jni/BuildDocObject.giws.xml \
19         src/jni/BuildDocObjectv2.giws.xml
20
21 libscihelptools_la_LIBADD = libscihelptools-algo.la
22 libscihelptools_algo_la_SOURCES =  $(HELPTOOLS_SOURCES)
23 libscihelptools_algo_la_CPPFLAGS = $(libscihelptools_la_CPPFLAGS)
24 noinst_LTLIBRARIES = libscihelptools-algo.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
40 libscihelptools_la_CPPFLAGS= $(JAVA_JNI_INCLUDE) \
41                                 -I$(srcdir)/src/jni/ \
42                                 -I$(srcdir)/includes/ \
43                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
44                                 -I$(top_srcdir)/modules/localization/includes/ \
45                                 -I$(top_srcdir)/modules/jvm/includes/ \
46                                 -I$(top_srcdir)/modules/commons/src/jni \
47                                 -I$(top_srcdir)/modules/api_scilab/includes/ \
48                                 -I$(top_srcdir)/modules/output_stream/includes/ \
49                                 $(AM_CPPFLAGS)
50
51
52 libscihelptools_la_SOURCES =  $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
53
54
55 # For the code check (splint)
56 CHECK_SRC= $(GATEWAY_C_SOURCES)
57 INCLUDE_FLAGS = $(libscihelptools_la_CFLAGS)
58
59
60 #### Target ######
61 modulename=helptools
62
63 #### helptools : Conf files ####
64 libscihelptools_la_rootdir = $(mydatadir)
65 libscihelptools_la_root_DATA =  license.txt 
66
67 #### helptools : init scripts ####
68 libscihelptools_la_etcdir = $(mydatadir)/etc
69 libscihelptools_la_etc_DATA = etc/helptools.quit etc/helptools.start etc/MAIN_CHAPTERS etc/fopconf.xml etc/SciDocConf.xml
70
71 #### helptools : bin files ####
72 libscihelptools_la_bindir = $(mydatadir)/bin
73 libscihelptools_la_bin_DATA = bin/scivalid \
74 bin/man2sci \
75 bin/manrev2sci
76
77 #### helptools : gateway declaration ####
78 libscihelptools_la_sci_gatewaydir = $(mydatadir)/sci_gateway
79 libscihelptools_la_sci_gateway_DATA = sci_gateway/helptools_gateway.xml
80
81 #### New documentation generation system
82 libscihelptools_la_data_configurationdir = $(mydatadir)/data/configuration
83 libscihelptools_la_data_configuration_DATA = data/configuration/scilab_primitives.txt \
84 data/configuration/scilab_macros.txt
85
86 libscihelptools_la_data_templatedir = $(mydatadir)/data/template
87 libscihelptools_la_data_template_DATA = data/template/template_chm.html \
88 data/template/template_html.html \
89 data/template/template_javahelp.html \
90 data/template/template_web.html
91 libscihelptools_la_data_cssdir = $(mydatadir)/data/css
92 libscihelptools_la_data_css_DATA = data/css/scilab_code.css \
93 data/css/c_code.css \
94 data/css/xml_code.css \
95 data/css/style.css
96
97 #### helptools : xsl files ####
98 libscihelptools_la_xsl_convertdir = $(mydatadir)/xsl/convert
99 libscihelptools_la_xsl_convert_DATA = \
100 xsl/convert/man2manrev.xsl \
101 xsl/convert/manrev2sci.xsl
102
103 libscihelptools_la_xsl_fodir = $(mydatadir)/xsl/fo
104 libscihelptools_la_xsl_fo_DATA = xsl/fo/docbook.xsl
105
106
107 #### helptools : schema files ####
108 libscihelptools_la_schemadir = $(mydatadir)/schema
109 libscihelptools_la_schema_DATA = schema/docbook.rng \
110 schema/dbits.rng \
111 schema/mathml3-common.rng \
112 schema/docbookxi.rng \
113 schema/mathml3-content.rng \
114 schema/mathml3.rng \
115 schema/scilab.rng \
116 schema/mathml3-presentation.rng \
117 schema/extendedStyle.xsl
118
119 #### helptools : pages files ####
120 libscihelptools_la_data_pagesdir = $(mydatadir)/data/pages
121 libscihelptools_la_data_pages_DATA = data/pages/error.html \
122 data/pages/homepage-en_US.html \
123 data/pages/homepage-fr_FR.html \
124 data/pages/ban-en_US.png \
125 data/pages/ban-fr_FR.png
126
127 mostlyclean-local:
128         rm -rf web javaHelp html pdf
129
130 include $(top_srcdir)/Makefile.incl.am
131