Salome HOME
4960aa2938fc296fd6e770e573d77b839a84347b
[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
29
30 # copy header files in common directory
31 ifeq ($(HAVE_SSTREAM),yes)
32   include_list=include/salome/SALOMEconfig.h
33 else
34   include_list=include/salome/SALOMEconfig.h include/salome/sstream
35 endif
36
37 inc: idl $(include_list)
38
39 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.h
40         -$(RM) $@
41         $(LN_S) ../../$< $@
42
43 include/salome/sstream: salome_adm/unix/sstream
44         -$(RM) $@
45         $(LN_S) ../../$< $@
46
47 depend: depend_idl
48
49 depend_idl:
50         (cd idl ; $(MAKE) $@) || exit 1
51
52 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
53 #doc:
54 #       (cd doc && $(MAKE) $@) || exit 1
55
56 install-end:
57 # finish libtool install
58 #       @$(LT) --mode=finish $(libdir)
59
60 install-include: $(include_list)
61         $(INSTALL) -d  $(includedir)
62         @for f in X $(include_list); do                         \
63            if test $$f != X; then                               \
64              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
65            fi;                                                  \
66         done
67
68 # install script in $(bindir) :
69 install-bin: $(BIN_SCRIPT)
70         $(INSTALL) -d  $(bindir)
71         if test $(BIN_SCRIPT)X != X; then                       \
72                 $(INSTALL_PROGRAM) $^ $(bindir);                \
73         fi
74
75 uninstall: uninstall-idl
76
77 uninstall-idl:
78         $(RM) $(idldir)/*.idl
79
80 distclean: distclean-other
81
82 distclean-other:
83         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
84         -$(RM) salome_adm/unix/make_* 
85         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
86         -$(RM) config.cache config.log config.status 
87
88 @MODULE@
89
90 install: install-bin install-include install-end
91