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