Salome HOME
Preparation of 3.1.0a2: merge with BR_3_0_0_OCC
[samples/hello.git] / Makefile.in
1 # -* Makefile *- 
2 #
3 # Author : C. Caremoli
4 # Date : 10/10/2003
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
13
14 @COMMENCE@
15
16 SUBDIRS = idl src
17
18 RESOURCES_FILES = HELLOCatalog.xml HELLO.png ExecHELLO.png
19
20 BIN_SCRIPT= VERSION runAppli runSalome.py
21
22 # copy header files in common directory
23 ifeq ($(HAVE_SSTREAM),yes)
24   include_list=include/salome/SALOMEconfig.h
25 else
26   include_list=include/salome/SALOMEconfig.h include/salome/sstream
27 endif
28
29 inc: idl $(include_list)
30
31 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
32         -$(RM) $@
33         $(LN_S) ../../$< $@
34
35 # test if SALOMEconfig.h has changed (contents)
36 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
37         @if ! [ -a $@ ]; then \
38           cp -p $< $@;        \
39         fi;                   \
40         if ! cmp $< $@; then  \
41           cp -p $< $@;        \
42         fi;                   \
43
44 include/salome/sstream: salome_adm/unix/sstream
45         -$(RM) $@
46         $(LN_S) ../../$< $@
47
48 depend: depend_idl
49
50 depend_idl:
51         (cd idl ; $(MAKE) $@) || exit 1
52
53 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
54 #doc:
55 #       (cd doc && $(MAKE) $@) || exit 1
56
57 install-end:
58 # finish libtool install
59 #       @$(LT) --mode=finish $(libdir)
60
61 install-include: $(include_list)
62         $(INSTALL) -d  $(includedir)
63         @for f in X $(include_list); do                         \
64            if test $$f != X; then                               \
65              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
66            fi;                                                  \
67         done
68
69 # install script in $(bindir) :
70 install-bin: $(BIN_SCRIPT)
71         $(INSTALL) -d  $(bindir)
72         $(INSTALL_PROGRAM) $^ $(bindir)
73
74 uninstall: uninstall-idl
75
76 uninstall-idl:
77         $(RM) $(idldir)/*.idl
78
79 distclean: distclean-other
80
81 distclean-other:
82         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
83         -$(RM) salome_adm/unix/make_* 
84         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
85         -$(RM) config.cache config.log config.status 
86
87 @MODULE@
88
89 install: install-bin install-include install-end
90