add javalibrarypath function
[scilab.git] / scilab / Makefile.am
1 ##########
2 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 ### INRIA - Scilab 2006 
4 ##########
5
6 ## Process this file with automake to produce Makefile.in (which will be changed by the ./configure)
7
8 AUTOMAKE_OPTIONS = 1.9 dist-zip dist-bzip2
9
10 SUBDIRS= libs \
11         modules
12
13 ACLOCAL_AMFLAGS = -I m4/
14
15 changelogs = CHANGES
16
17 bin_PROGRAMS            = scilab-bin
18
19 bin_SCRIPTS                     = bin/scilab
20
21 scilab_bin_SOURCES              = $(top_srcdir)/modules/core/src/c/main_linux.c
22
23 scilab_bin_LDADD = $(top_builddir)/modules/libscilab.la \
24         $(X_EXTRA_LIBS) -lXt -lX11 -lSM
25
26 rootdir=$(pkgdatadir)/etc/
27 root_DATA = $(top_srcdir)/etc/scilab.start \
28 $(top_srcdir)/etc/scilab.quit \
29 $(top_srcdir)/etc/modules.xml \
30 $(top_srcdir)/etc/classpath.xml \
31 $(top_srcdir)/etc/librarypath.xml \
32 $(top_srcdir)/etc/toolboxes.xml
33
34 all: macros
35  ###¬†Crappy code ... Need some clean up
36
37 macros:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab
38         -@( cd $(top_builddir) ; \
39         LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$(LD_LIBRARY_PATH)";    export LD_LIBRARY_PATH; \
40         echo "$(top_builddir)/bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce" ; \
41         $(top_builddir)/bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce)
42
43 doc:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab
44         -@( cd $(top_builddir) ; \
45         LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$(LD_LIBRARY_PATH)";    export LD_LIBRARY_PATH; \
46         $(top_builddir)/bin/scilab -nb -l en -nouserstartup -nwni -e "xmltohtml();exit;")
47
48         -@( cd $(top_builddir) ; \
49         LD_LIBRARY_PATH="$(JAVA_HOME)/jre/lib/i386/:$(JAVA_HOME)/jre/lib/i386/server/:$(JAVA_HOME)/jre/lib/i386/native_threads/:$(LD_LIBRARY_PATH)";    export LD_LIBRARY_PATH; \
50         $(top_builddir)/bin/scilab -nb -l fr -nouserstartup -nwni -e "xmltohtml();exit;")
51
52
53 check-local:
54         $(top_builddir)/scilab-bin -nb -l fr -e check_help();exit;
55         $(top_builddir)/scilab-bin -nb -l en -e check_help();exit;
56
57 distclean-local::       
58 clean-local:
59 #       @..\..\..\bin\scilex -nb -l en -nouserstartup -nwni -e clean_help();exit;
60 #       @..\..\..\bin\scilex -nb -l fr -nouserstartup -nwni -e clean_help();exit;
61
62
63 # Pkgconfig directory
64 pkgconfigdir = $(libdir)/pkgconfig
65
66 # Files to install in Pkgconfig directory
67 pkgconfig_DATA =  scilab.pc