79d47c95bd8ae043c0f9ff2d027439d755a5d158
[scilab.git] / scilab / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA - 2006-2008 - Sylvestre Ledru
4 # Copyright (C) DIGITEO - 2009 - Sylvestre Ledru
5 #
6 # This file must be used under the terms of the CeCILL.
7 # This source file is licensed as described in the file COPYING, which
8 # you should have received as part of this distribution.  The terms
9 # are also available at
10 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 #
12
13 ## Process this file with automake to produce Makefile.in (which will be changed by the ./configure)
14
15 AUTOMAKE_OPTIONS = 1.11 dist-zip dist-bzip2
16
17 SUBDIRS= modules \
18         contrib \
19         desktop
20
21 ACLOCAL_AMFLAGS = -I m4/
22
23 # Set AM_* SCI detected settings
24 AM_CPPFLAGS = $(SCI_CPPFLAGS)
25 AM_CFLAGS   = $(SCI_CFLAGS)
26 AM_CXXFLAGS = $(SCI_CXXFLAGS)
27 AM_FFLAGS   = $(SCI_FFLAGS)
28 AM_LDFLAGS  = $(SCI_LDFLAGS)
29
30 changelogs = CHANGES CHANGES_5.1.X CHANGES_5.2.X CHANGES_5.3.X CHANGES_5.4.X
31
32 bin_PROGRAMS            = scilab-bin scilab-cli-bin
33
34 bin_SCRIPTS                     = bin/scilab bin/scilab-adv-cli bin/scilab-cli
35
36 if IS_MACOSX
37 bin_SCRIPTS             += bin/checkmacosx.applescript
38 endif
39
40 scilab_bin_LDFLAGS          = $(AM_LDFLAGS)
41 scilab_cli_bin_LDFLAGS  = $(AM_LDFLAGS)
42
43 if IS_MACOSX
44 scilab_bin_LDFLAGS              += -framework Cocoa
45 endif
46
47 scilab_bin_CPPFLAGS = -I$(top_srcdir)/modules/io/includes/ \
48                     -I$(top_srcdir)/modules/console/includes/ \
49                     -I$(top_srcdir)/modules/localization/includes/ \
50                     $(AM_CPPFLAGS)
51 # --no-undefined --relax
52
53 # Localization dep already exists because of the `exportLocaleToSystem' symbol
54 # (causing issues on some platform)
55 COMMON_LIBS = $(LTLIBINTL)
56
57 scilab_bin_SOURCES              = $(top_srcdir)/modules/console/src/c/others/mainscic.c
58
59 scilab_bin_LDADD                = $(COMMON_LIBS) $(top_builddir)/modules/libscilab.la $(FLIBS)
60
61 # Match scilab -nwni (ie command line without graphics)
62 scilab_cli_bin_SOURCES  = $(top_srcdir)/modules/console/src/c/others/mainscic.c
63
64 scilab_cli_bin_CPPFLAGS = -DWITHOUT_GUI $(scilab_bin_CPPFLAGS)
65 scilab_cli_bin_LDADD    = $(COMMON_LIBS) $(top_builddir)/modules/libscilab-cli.la $(FLIBS)
66
67
68 if NEED_JAVA
69 # Don't do it for scilab_cli_bin. We want to be able to call it without
70 # the java libs
71         scilab_bin_LDADD += $(JAVA_JNI_LIBS)
72 endif
73
74 if IS_SOLARIS
75 # The binary itself needs this dep
76         scilab_bin_LDADD += $(BLAS_LIBS)
77 endif
78
79 if ENABLE_STATIC
80 scilab_static_bin_LDFLAGS = -static -static-libgcc --start-group $(AM_LDFLAGS)
81 scilab_static_bin_CFLAGS  = -Wl,--start-group `$(CXX) -print-file-name=libstdc++.a` $(AM_CFLAGS)
82
83 #-static
84 bin_PROGRAMS                    += scilab-static-bin
85 scilab_static_bin_LDADD = $(top_builddir)/modules/libscilab.la
86
87 scilab_static_bin_SOURCES = $(scilab_bin_SOURCES)
88 endif
89
90 LANG_DOMAIN=scilab
91
92 TARGETS_ALL=macros
93
94 #  The user wants to compile the localization files
95 if GENERATE_LOCALIZATION_FILES
96 TARGETS_ALL+=localization
97 endif
98
99 if COMPILATION_TESTS
100 TARGETS_ALL+=check-java
101 endif
102
103 # check is performed with scilab
104 TESTS_ENVIRONMENT = LANG=C $(top_builddir)/bin/scilab-cli -nb -noatomsautoload -f
105 TESTS = $(top_srcdir)/modules/development_tools/tests/unit_tests/test_run_level_1.tst
106
107 all-local: $(TARGETS_ALL)
108
109 rootdir=$(pkgdatadir)/etc/
110 root_DATA = $(top_srcdir)/etc/scilab.start \
111 $(top_srcdir)/etc/scilab.quit \
112 $(top_srcdir)/etc/toolboxes.xml \
113 $(top_builddir)/etc/jvm_options.xml \
114 $(top_builddir)/etc/modules.xml \
115 $(top_builddir)/etc/classpath.xml \
116 $(top_builddir)/etc/logging.properties \
117 $(top_builddir)/etc/librarypath.xml
118
119 infofilesdir=$(pkgdatadir)/
120 infofiles_DATA = $(top_srcdir)/CHANGES_2.X \
121 $(top_srcdir)/CHANGES_3.X \
122 $(top_srcdir)/CHANGES_4.X \
123 $(top_srcdir)/CHANGES_5.0.X \
124 $(top_srcdir)/CHANGES_5.1.X \
125 $(top_srcdir)/CHANGES_5.2.X \
126 $(top_srcdir)/CHANGES_5.3.X \
127 $(top_srcdir)/CHANGES_5.4.X \
128 $(top_srcdir)/ACKNOWLEDGEMENTS \
129 $(top_srcdir)/COPYING \
130 $(top_srcdir)/COPYING-BSD \
131 $(top_srcdir)/COPYING-FR \
132 $(top_srcdir)/README_Unix \
133 $(top_srcdir)/RELEASE_NOTES_5.0.X \
134 $(top_srcdir)/RELEASE_NOTES_5.1.X \
135 $(top_srcdir)/RELEASE_NOTES_5.2.X \
136 $(top_srcdir)/RELEASE_NOTES_5.3.X \
137 $(top_srcdir)/Readme_Visual.txt \
138 $(top_srcdir)/README_Windows.txt \
139 $(top_builddir)/Version.incl
140
141 valgrinddir=$(pkgdatadir)/tools/profiling
142 valgrind_DATA = $(top_srcdir)/tools/profiling/valgrind.supp
143
144 macros: $(top_builddir)/scilab-cli-bin $(top_builddir)/bin/scilab-cli check-jvm-dep
145         -@( cd $(top_builddir) ; \
146         echo "$(top_builddir)/bin/scilab-cli -ns -noatomsautoload -f modules/functions/scripts/buildmacros/buildmacros.sce" ; \
147         $(top_builddir)/bin/scilab-cli -ns -noatomsautoload -f modules/functions/scripts/buildmacros/buildmacros.sce) || exit 1
148
149
150 check-jvm-dep:
151 # Check that scilab-cli does not have a dependency on libjvm
152 if !IS_MACOSX
153         @ldd .libs/scilab-cli-bin|grep libjvm > /dev/null; \
154         if test $$? == 0; then \
155                 echo "Found dependency from scilab-cli-bin to libjvm found"; exit 2;\
156         fi
157 endif
158
159 # Build the public Javadoc (javasci v2 and Java/Scilab types)
160 # This is not done in the module itself because its needs also the "types"
161 # module
162 javadoc:
163         $(JAVADOC) -noindex -nohelp -nonavbar -notree \
164         -d $(top_builddir)/modules/javasci/javadoc \
165         -sourcepath $(top_srcdir)/modules/javasci/src/java:$(top_srcdir)/modules/types/src/java::$(top_srcdir)/modules/localization/src/java \
166         org.scilab.modules.javasci org.scilab.modules.types
167
168 javadoc-all:
169         MASK="$(top_srcdir)/modules/*/src/java/"; \
170         MODULES=`ls -d $$MASK`; \
171         for M in $$MODULES; do \
172                 LISTMODULES="$$M:$$LISTMODULES"; \
173                 MODULE=$$(echo $$M|cut -d/ -f3); \
174                 LISTPKG="$$LISTPKG org.scilab.modules.$$MODULE"; \
175         done; \
176         $(JAVADOC) \
177         -d $(top_builddir)/javadocall \
178         -sourcepath $$LISTMODULES \
179         $$LISTPKG
180
181 doc-fr_FR:
182         @$(MAKE) $(AM_MAKEFLAGS) doc ALL_LINGUAS_DOC=fr_FR
183
184 doc-en_US:
185         @$(MAKE) $(AM_MAKEFLAGS) doc ALL_LINGUAS_DOC=en_US
186
187 doc-pt_BR:
188         @$(MAKE) $(AM_MAKEFLAGS) doc ALL_LINGUAS_DOC=pt_BR
189
190 doc-ru_RU:
191         @$(MAKE) $(AM_MAKEFLAGS) doc ALL_LINGUAS_DOC=ru_RU
192
193 doc-ja_JP:
194         @$(MAKE) $(AM_MAKEFLAGS) doc ALL_LINGUAS_DOC=ja_JP
195
196 # Regenerate all images
197 doc-images:
198         rm -rf $(top_srcdir)/modules/helptools/images/
199         mkdir $(top_srcdir)/modules/helptools/images/
200         $(MAKE) doc
201
202 doc: javadoc $(top_builddir)/scilab-bin $(top_builddir)/bin/scilab-adv-cli
203 if BUILD_HELP
204         @if test -x $(top_builddir)/scilab-bin; then \
205                 cd $(top_builddir);\
206                 for l in $(ALL_LINGUAS_DOC); do \
207                         echo "-- Building documentation ($$l) --"; \
208                         COMMAND="try xmltojar([],[],'$$l');catch disp(lasterror()); exit(-1);end;exit(0);"; \
209                         echo "LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 $(top_builddir)/bin/scilab-adv-cli -noatomsautoload -nb -nouserstartup -e \"$$COMMAND\"";\
210                         LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 $(top_builddir)/bin/scilab-adv-cli -noatomsautoload -nb -l $$l -nouserstartup -e "$$COMMAND" || exit 1;\
211                 done; \
212         else \
213                 echo "Cannot find Scilab-adv-cli binary"; \
214         fi
215 else
216         @echo "Cannot buid help. Add --enable-build-help to the ./configure if you want to build it."
217 endif
218
219 doc-web: javadoc $(top_builddir)/scilab-bin $(top_builddir)/bin/scilab-adv-cli
220 if BUILD_HELP
221         @if test -x $(top_builddir)/scilab-bin; then \
222                 cd $(top_builddir);\
223                 for l in $(ALL_LINGUAS_DOC); do \
224                         echo "-- Building documentation ($$l) --"; \
225                         COMMAND="try xmltoweb([],[],'$$l');catch exit(-1);end;exit(0);";\
226                         echo "LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 $(top_builddir)/bin/scilab-adv-cli -nb -l $$l -noatomsautoload -nouserstartup -e \"$$COMMAND\"";\
227                         LANG=C SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 $(top_builddir)/bin/scilab-adv-cli -nb -l $$l -noatomsautoload -nouserstartup -e "$$COMMAND" || exit 1;\
228                         JAVADOC_TARGET=$(top_builddir)/modules/helptools/web/$$l/javasci; \
229                         if test ! -d $$JAVADOC_TARGET; then \
230                                 mkdir $$JAVADOC_TARGET; \
231                                 ln -s ../../../../javasci/javadoc/ $$JAVADOC_TARGET/; \
232                         fi; \
233                 done; \
234         else \
235                 echo "Cannot find Scilab-adv-cli binary"; \
236         fi
237 else
238         @echo "Cannot buid help. Add --enable-build-help to the ./configure if you want to build it."
239 endif
240
241 doxygen: modules/development_tools/etc/doxyfile
242 if DOXYGEN
243         mkdir $(top_builddir)/reports/
244         $(DOXYGEN_BIN) modules/development_tools/etc/doxyfile
245 endif
246
247 check-help:$(top_builddir)/scilab-cli-bin $(top_builddir)/bin/scilab-cli
248         @if test -x $(top_builddir)/scilab-cli-bin; then \
249                 for l in $(ALL_LINGUAS_DOC); do \
250                         echo "-- Checking documentation ($$l) --"; \
251                         COMMAND="try check_help();catch exit(-1);end;exit(0);";\
252                         echo "$(top_builddir)/bin/scilab-cli -nb -l $$l -noatomsautoload -e \"$$COMMAND\"";\
253                         $(top_builddir)/bin/scilab-cli -nb -l $$l -noatomsautoload -e "$$COMMAND" || exit 1;\
254                 done; \
255         else \
256                 echo "Cannot find Scilab binary"; \
257         fi
258
259 code-coverage:
260 if CODE_COVERAGE
261         @if test ! -d $(top_builddir)/coverage/; then \
262                 mkdir $(top_builddir)/coverage/; \
263         fi; \
264         touch $(top_srcdir)/modules/differential_equations/callinter.h $(top_srcdir)/modules/linear_algebra/callinter.h $(top_srcdir)/modules/scicos/callinter.h $(top_srcdir)/modules/scicos_blocks/callinter.h $(top_srcdir)/modules/optimization/callinter.h $(top_srcdir)/modules/signal_processing/callinter.h; \
265         $(LCOV) --directory $(top_builddir) --capture --ignore-errors source --output-file $(top_builddir)/coverage/scilab-code-coverage.info; \
266         echo -e "genhtml_hi_limit = 85\ngenhtml_med_limit = 70" > $(top_builddir)/coverage/lcovrc; \
267         $(GENHTML) -o $(top_builddir)/coverage/results/ --config-file $(top_builddir)/coverage/lcovrc --show-details --highlight --legend $(top_builddir)/coverage/scilab-code-coverage.info; \
268         rm -f $(top_builddir)/coverage/lcovrc; \
269         echo "To open the result: firefox  $(top_builddir)/coverage/results/index.html"; \
270         rm -f $(top_srcdir)/modules/differential_equations/callinter.h $(top_srcdir)/modules/linear_algebra/callinter.h $(top_srcdir)/modules/scicos/callinter.h $(top_srcdir)/modules/scicos_blocks/callinter.h $(top_srcdir)/modules/optimization/callinter.h $(top_srcdir)/modules/signal_processing/callinter.h
271 #--frames is disable because of : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607206
272 else
273         @echo "Cannot start the code coverage. Add --enable-code-coverage to the ./configure and 'make clean all'."
274 endif
275
276 distclean-recursive: distclean-generated clean-recursive
277
278 clean-recursive: clean-help clean-localization clean-macros clean-generated
279
280 clean-macros:
281 # Find is necessary because of subdirs...
282         -@echo "-- Cleaning macros (*.bin) --"; \
283         find $(top_builddir) -name "*.bin" | xargs --no-run-if-empty rm 2> /dev/null; \
284         echo "-- Cleaning names files (names) --"; \
285         find $(top_builddir)/modules/*/macros -name "names" | xargs --no-run-if-empty rm 2> /dev/null; \
286         echo "-- Cleaning lib files (lib) --"; \
287         find $(top_builddir)/modules/*/macros -name "lib" | xargs --no-run-if-empty rm 2> /dev/null
288
289 # To ensure previous compatibility
290 clean-doc: clean-help
291
292 clean-help:
293         -@if test -x $(top_builddir)/scilab-cli-bin; then \
294                 COMMAND="try clean_help();catch exit(-1);end;exit(0)"; \
295                 for l in $(ALL_LINGUAS_DOC); do \
296                         echo "$(top_builddir)/bin/scilab-cli -nb -l $$l -noatomsautoload -e '$$COMMAND'"; \
297                         $(top_builddir)/bin/scilab-cli -nb -l $$l -noatomsautoload -e "$$COMMAND" || exit 1; \
298                 done; \
299         else \
300                 echo "Cannot find Scilab binary"; \
301         fi; \
302         echo "rmdir $(top_builddir)/modules/helptools/javaHelp/"; \
303         rm -rf $(top_builddir)/modules/helptools/javaHelp/; \
304         echo "rm -rf $(top_builddir)/modules/scicos/help/*/scilab_*_help"; \
305         rm -rf $(top_builddir)/modules/scicos/help/*/scilab_*_help; \
306         echo "rm -f $(top_builddir)/modules/scicos/help/en_US/master_help.xml"; \
307         rm -f $(top_builddir)/modules/scicos/help/en_US/master_help.xml; \
308         echo "rm -f $(top_builddir)/modules/scicos/jar/"; \
309         rm -rf $(top_builddir)/modules/scicos/jar/; \
310         echo "rm -rf $(top_builddir)/modules/javasci/javadoc"; \
311         rm -rf $(top_builddir)/modules/javasci/javadoc; \
312         echo "rm -rf $(top_builddir)/html"; \
313         rm -rf $(top_builddir)/html;
314
315 clean-tests:
316         @if test -x $(top_builddir)/scilab-cli-bin; then \
317                 $(top_builddir)/bin/scilab-cli -nb -noatomsautoload -l fr -e 'try test_clean();catch exit(-1);end;exit(0);' || exit 1; \
318         else \
319                 echo "Cannot find Scilab binary"; \
320         fi
321
322 clean-localization:
323         rm -rf $(top_srcdir)/locale/*
324
325 clean-generated:
326 # Deleted junit + code coverage
327         rm -rf $(top_builddir)/reports/
328         rm -rf $(top_builddir)/modules/scicos_blocks/build/ 2> /dev/null
329
330 distclean-generated:
331         rm -f $(top_builddir)/modules/core/includes/stack.h 2> /dev/null
332
333
334 if IS_MACOSX
335 # Used for mac os x because it needs to remove the charset=UTF-8 because it is breaking the accents.
336 MACOSX=1
337 endif
338
339 clean-reports:
340         rm -f reports/xml/TEST-org.scilab.*.xml
341
342 # For each module, build and call Java unitary tests
343 # If fails, stops the call
344 check-java: clean-reports
345         @echo "-- Launch all Junit (Java) unitary tests"; \
346         MASK="$(top_srcdir)/modules/*/tests/java/"; \
347         MODULES=`ls -d $$MASK`; \
348         for M in $$MODULES; do \
349                 BASE=`echo $$M|sed -e "s|tests/java/$$||g"`; \
350                 $(ANT) -buildfile $$BASE/build.xml test || exit $$?; \
351         done
352         rm -f reports/xml/TEST-org.scilab.*.xml
353
354 codecoverage-java: clean-reports
355         @echo "Check if --enable-debug-java has been set"; \
356         grep "build.debug=on" $(top_srcdir)/scilab.properties > /dev/null || exit 10; \
357         echo "-- Launch all Junit (Java) unitary tests + code coverage"; \
358         MASK="$(top_srcdir)/modules/*/tests/java/"; \
359         MODULES=`ls -d $$MASK`; \
360         for M in $$MODULES; do \
361                 BASE=`echo $$M|sed -e "s|tests/java/$$||g"`; \
362                 $(ANT) -buildfile $$BASE/build.xml codecoverage || exit $$?; \
363         done
364         rm -f reports/xml/TEST-org.scilab.*.xml
365
366 # The user wants to compile the localization files
367 # Please note that ALL_LINGUAS is defined in configure.ac
368 if GENERATE_LOCALIZATION_FILES
369 localization:
370         @echo "-- Build localization (.mo from .po) --"; \
371         MASK="modules/*/locales/"; \
372         LC="LC_MESSAGES"; \
373         MSGFMT_OPTS="$MSGFMT_OPTS --check"; \
374         EXTENSION="*.po"; \
375         rm modules/*/locales/*~ 2> /dev/null; \
376         for LOCALE in $(ALL_LINGUAS); do \
377                 echo "        -- Building for $$LOCALE --"; \
378                 if test "$$LOCALE" == "en_US"; then \
379                         LOCFILE=$$MASK/*.pot; \
380                 else \
381                         LOCFILE=$$MASK/$$LOCALE$$EXTENSION; \
382                 fi; \
383                 FILES=`ls $$LOCFILE`; \
384                 PATHTO=$(top_builddir)/locale/$$LOCALE/$$LC/; \
385                 if test ! -d $$PATHTO; then \
386                         echo "        Creating $$PATHTO"; \
387                         mkdir -p $$PATHTO; \
388                 fi; \
389                 POFILE=$$PATHTO/$(LANG_DOMAIN).po; \
390                 $(MSGCAT) --use-first -o $$POFILE $$FILES || exit 2; \
391                 if test "$(MACOSX)" = "1"; then sed -i -e '/charset=UTF-8/d' $$POFILE; fi; \
392                 $(MSGFMT) $(MSGFMT_OPTS) --statistics -o $$PATHTO/$(LANG_DOMAIN).mo $$POFILE || exit 2; \
393         done;
394
395
396 localization-status:
397         @for LOCALE in $(ALL_LINGUAS_DOC); do \
398                 if test "$$LOCALE" != "en_US"; then \
399                         PATHTO=$(top_builddir)/locale-status/$$LOCALE/; \
400                         if test ! -d $$PATHTO; then \
401                                 echo "        Creating $$PATHTO"; \
402                                 mkdir -p $$PATHTO; \
403                         fi; \
404                         echo "Building status for $$LOCALE"; \
405                         echo "SCI=$(top_srcdir) php tools/localization/revcheck.php $$LOCALE > $$PATHTO/index.html"; \
406                         SCI=$(top_srcdir) php tools/localization/revcheck.php $$LOCALE > $$PATHTO/index.html; \
407                 fi; \
408         done;
409
410 endif
411
412 # Misc variable for the documentation installation
413
414 # How help files look like.
415 DOCMASK=scilab_*_help.jar
416 DOCIMAGES=scilab_images.jar
417
418 # Path to builded files
419 PATHTOHELPFILES = modules/helptools/jar/
420
421 # Path javasci to builded files
422 PATHTOJAVASCIDOC = modules/javasci/javadoc/
423 JAVASCI_DIRS = . resources \
424         org/scilab/modules/javasci/ \
425         org/scilab/modules/types/
426
427 if GENERATE_LOCALIZATION_FILES
428 install-data-local:
429         @$(mkinstalldirs) $(DESTDIR)$(localedir); \
430         echo $(mkinstalldirs) $(DESTDIR)$(localedir); \
431         for lang in $(ALL_LINGUAS); do \
432                 LANG_PATH_DIST=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/; \
433                 echo $(mkinstalldirs) $$LANG_PATH_DIST; \
434                 $(mkinstalldirs) $$LANG_PATH_DIST; \
435                 echo $(INSTALL_DATA) $(top_builddir)/locale/$$lang/LC_MESSAGES/$(LANG_DOMAIN).mo $$LANG_PATH_DIST/; \
436                 $(INSTALL_DATA) $(top_builddir)/locale/$$lang/LC_MESSAGES/$(LANG_DOMAIN).mo $$LANG_PATH_DIST/; \
437         done
438 endif
439
440 ################ INSTALL DOCUMENTATION #################
441 # Starting from Scilab 5, documentation file are provided by Docbook
442 # In the Scilab application we are generating a JavaHelp file.
443 if BUILD_HELP
444         @$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOHELPFILES); \
445         echo $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOHELPFILES); \
446         if ls -lLd $(top_builddir)/$(PATHTOHELPFILES)/$(DOCMASK) >/dev/null 2>&1; then \
447                 for file in $(top_builddir)/$(PATHTOHELPFILES)/$(DOCMASK) $(top_builddir)/$(PATHTOHELPFILES)/$(DOCIMAGES); do \
448                     echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/$(PATHTOHELPFILES)" ; \
449                 $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdatadir)/$(PATHTOHELPFILES) ; \
450                 done; \
451         fi
452 ## Install Javasci documentation (javadoc)
453 ## See target javadoc in this file to see how it is build
454         @if test -d $(PATHTOJAVASCIDOC); then \
455         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOJAVASCIDOC); \
456         echo $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOJAVASCIDOC); \
457         for dir in $(JAVASCI_DIRS) ; do \
458                 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOJAVASCIDOC)/$$dir; \
459                 echo $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOJAVASCIDOC)/$$dir; \
460                         for file in $(top_builddir)/$(PATHTOJAVASCIDOC)/$(dir)/*; do \
461                             echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/$(PATHTOJAVASCIDOC)/$$dir" ; \
462                                 $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdatadir)/$(PATHTOJAVASCIDOC)/$$dir ; \
463                         done; \
464         done; \
465         fi
466 endif
467
468 # Pkgconfig directory
469 pkgconfigdir = $(libdir)/pkgconfig
470
471 # Files to install in Pkgconfig directory
472 pkgconfig_DATA = scilab.pc
473
474 .PHONY: macros localization doc
475
476 .NOTPARALLEL: macros doc
477
478 include $(top_srcdir)/Makefile.call_scilab.am