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