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