Salome HOME
pour lct Eficas Telemac depuis hydrosolver
[modules/eficas.git] / Makefile.in
1 # -* Makefile *- 
2 #
3 # Author : Patrick GOLDBRONN (CEA)
4 # Date : 28/06/2001
5 #
6
7 # source path
8 top_srcdir=@top_srcdir@
9 top_builddir=.
10 srcdir=@srcdir@
11 VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
12
13
14 @COMMENCE@
15
16 SUBDIRS = idl src doc
17
18 RESOURCES_FILES = \
19 EFICASCatalog.xml \
20 EFICAS_en.xml     \
21 EFICAS_fr.xml     \
22 SalomeApp.xml\
23 eficasAdao.png \
24 eficasCarmel3D.png \
25 eficasCF.png \
26 eficasMAP.png \
27 eficasMT.png \
28 eficas.png \
29 eficasSEP.png \
30 eficasSPECA.png \
31 eficasTelemac.png \
32 moins.png \
33 plus.png \
34 select1.png \
35 VERSION
36
37 # copy header files in common directory
38 ifeq ($(HAVE_SSTREAM),yes)
39   include_list=include/salome/SALOMEconfig.h
40 else
41   include_list=include/salome/SALOMEconfig.h include/salome/sstream
42 endif
43
44 inc: idl $(include_list)
45
46 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
47         -$(RM) $@
48         $(LN_S) ../../$< $@
49
50 # test if SALOMEconfig.h has changed (contents)
51 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
52         @if ! [ -a $@ ]; then \
53           cp -p $< $@;        \
54         fi;                   \
55         if ! cmp $< $@; then  \
56           cp -p $< $@;        \
57         fi;                   \
58
59 include/salome/sstream: salome_adm/unix/sstream
60         -$(RM) $@
61         $(LN_S) ../../$< $@
62
63 depend: depend_idl
64
65 depend_idl:
66         (cd idl ; $(MAKE) $@) || exit 1
67
68 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
69 #doc:
70 #       (cd doc && $(MAKE) $@) || exit 1
71
72 install-end:
73 # finish libtool install
74 #       @$(LT) --mode=finish $(libdir)
75
76 install-include: $(include_list)
77         $(INSTALL) -d  $(includedir)
78         @for f in X $(include_list); do                         \
79            if test $$f != X; then                               \
80              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
81            fi;                                                  \
82         done
83
84 # install script in $(bindir) :
85 install-bin: $(BIN_SCRIPT)
86         $(INSTALL) -d  $(bindir)
87         if test $(BIN_SCRIPT)X != X; then                       \
88                 $(INSTALL_PROGRAM) $^ $(bindir);                \
89         fi
90
91 uninstall: uninstall-idl
92
93 uninstall-idl:
94         $(RM) $(idldir)/*.idl
95
96 distclean: distclean-other
97
98 distclean-other:
99         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
100         -$(RM) salome_adm/unix/make_* 
101         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
102         -$(RM) config.cache config.log config.status 
103
104 @MODULE@
105
106 install: install-bin install-include install-end
107