Salome HOME
Correction compatibilité SALOME V3
[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 
17
18 RESOURCES_FILES = \
19 EFICASCatalog.xml \
20 EFICAS_en.xml     \
21 eficashomard.png  \
22 eficas.png        \
23 eficaster.png     \
24 eficasternovice.png \
25 moins.png   \
26 plus.png     \
27 select1.png \
28
29
30 BIN_SCRIPT= \
31 VERSION
32
33 # copy header files in common directory
34 ifeq ($(HAVE_SSTREAM),yes)
35   include_list=include/salome/SALOMEconfig.h
36 else
37   include_list=include/salome/SALOMEconfig.h include/salome/sstream
38 endif
39
40 inc: idl $(include_list)
41
42 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
43         -$(RM) $@
44         $(LN_S) ../../$< $@
45
46 # test if SALOMEconfig.h has changed (contents)
47 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
48         @if ! [ -a $@ ]; then \
49           cp -p $< $@;        \
50         fi;                   \
51         if ! cmp $< $@; then  \
52           cp -p $< $@;        \
53         fi;                   \
54
55 include/salome/sstream: salome_adm/unix/sstream
56         -$(RM) $@
57         $(LN_S) ../../$< $@
58
59 depend: depend_idl
60
61 depend_idl:
62         (cd idl ; $(MAKE) $@) || exit 1
63
64 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
65 #doc:
66 #       (cd doc && $(MAKE) $@) || exit 1
67
68 install-end:
69 # finish libtool install
70 #       @$(LT) --mode=finish $(libdir)
71
72 install-include: $(include_list)
73         $(INSTALL) -d  $(includedir)
74         @for f in X $(include_list); do                         \
75            if test $$f != X; then                               \
76              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
77            fi;                                                  \
78         done
79
80 # install script in $(bindir) :
81 install-bin: $(BIN_SCRIPT)
82         $(INSTALL) -d  $(bindir)
83         if test $(BIN_SCRIPT)X != X; then                       \
84                 $(INSTALL_PROGRAM) $^ $(bindir);                \
85         fi
86
87 uninstall: uninstall-idl
88
89 uninstall-idl:
90         $(RM) $(idldir)/*.idl
91
92 distclean: distclean-other
93
94 distclean-other:
95         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
96         -$(RM) salome_adm/unix/make_* 
97         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
98         -$(RM) config.cache config.log config.status 
99
100 @MODULE@
101
102 install: install-bin install-include install-end
103