ce5a50f30dae5d01f55087671647552763a497d4
[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/toolboxes.xml
32
33 all: macros
34  ###¬†Crappy code ... Need some clean up
35
36 macros:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab
37         -@( cd $(top_builddir) ; \
38         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; \
39         echo "$(top_builddir)/bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce" ; \
40         $(top_builddir)/bin/scilab -ns -nwni -f modules/functions/scripts/buildmacros/buildmacros.sce)
41
42 doc:$(top_builddir)/scilab-bin $(top_builddir)/bin/scilab
43         -@( cd $(top_builddir) ; \
44         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; \
45         $(top_builddir)/bin/scilab -nb -l en -nouserstartup -nwni -e "xmltohtml();exit;")
46
47         -@( cd $(top_builddir) ; \
48         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; \
49         $(top_builddir)/bin/scilab -nb -l fr -nouserstartup -nwni -e "xmltohtml();exit;")
50
51
52 check-local:
53         $(top_builddir)/scilab-bin -nb -l fr -e check_help();exit;
54         $(top_builddir)/scilab-bin -nb -l en -e check_help();exit;
55
56 distclean-local::       
57 clean-local:
58 #       @..\..\..\bin\scilex -nb -l en -nouserstartup -nwni -e clean_help();exit;
59 #       @..\..\..\bin\scilex -nb -l fr -nouserstartup -nwni -e clean_help();exit;
60
61
62 # Pkgconfig directory
63 pkgconfigdir = $(libdir)/pkgconfig
64
65 # Files to install in Pkgconfig directory
66 pkgconfig_DATA =  scilab.pc