Salome HOME
Join modifications from branch OCC_development_for_3_2_0a2
[samples/pyhello.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 adm_local
17
18 RESOURCES_FILES = PYHELLOCatalog.xml PYHELLO.png PYHELLO_en.xml \
19                   ExecPYHELLO.png
20
21 BIN_SCRIPT= VERSION runAppli myrunSalome.py
22
23 # copy header files in common directory
24 ifeq ($(HAVE_SSTREAM),yes)
25   include_list=include/salome/SALOMEconfig.h
26 else
27   include_list=include/salome/SALOMEconfig.h include/salome/sstream
28 endif
29
30 inc: idl $(include_list)
31
32 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
33         -$(RM) $@
34         $(LN_S) ../../$< $@
35
36 # test if SALOMEconfig.h has changed (contents)
37 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
38         @if ! [ -a $@ ]; then \
39           cp -p $< $@;        \
40         fi;                   \
41         if ! cmp $< $@; then  \
42           cp -p $< $@;        \
43         fi;                   \
44
45 include/salome/sstream: salome_adm/unix/sstream
46         -$(RM) $@
47         $(LN_S) ../../$< $@
48
49 depend: depend_idl
50
51 depend_idl:
52         (cd idl ; $(MAKE) $@) || exit 1
53
54 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
55 #doc:
56 #       (cd doc && $(MAKE) $@) || exit 1
57
58 install-end:
59 # finish libtool install
60 #       @$(LT) --mode=finish $(libdir)
61
62 install-include: $(include_list)
63         $(INSTALL) -d  $(includedir)
64         @for f in X $(include_list); do                         \
65            if test $$f != X; then                               \
66              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
67            fi;                                                  \
68         done
69
70 # install script in $(bindir) :
71 install-bin: $(BIN_SCRIPT)
72         $(INSTALL) -d  $(bindir)
73         $(INSTALL_PROGRAM) $^ $(bindir)
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