Salome HOME
Canges in configure scripts.
[samples/sierpinsky.git] / Makefile.in
1 ###############################################################
2 # File    : Makefile.in
3 # Author  : Vadim SANDLER (OCN)
4 # Created : 13/07/05
5 # Copyright (C) 2005 Open CASCADE
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 = \
19         SIERPINSKYCatalog.xml \
20         SIERPINSKY.png \
21         go.png \
22         graph1.xml \
23         graph2.xml
24
25 BIN_SCRIPT = VERSION
26
27 # copy header files in common directory
28 ifeq ($(HAVE_SSTREAM),yes)
29   include_list=include/salome/SALOMEconfig.h
30 else
31   include_list=include/salome/SALOMEconfig.h include/salome/sstream
32 endif
33
34 inc: idl $(include_list)
35
36 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
37         -$(RM) $@
38         $(LN_S) ../../$< $@
39
40 # test if SALOMEconfig.h has changed (contents)
41 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
42         @if ! [ -a $@ ]; then \
43           cp -p -f $< $@;        \
44         fi;                   \
45         if ! cmp $< $@; then  \
46           cp -p -f $< $@;        \
47         fi;                   \
48
49 include/salome/sstream: salome_adm/unix/sstream
50         -$(RM) $@
51         $(LN_S) ../../$< $@
52
53 depend: depend_idl
54
55 depend_idl:
56         (cd idl ; $(MAKE) $@) || exit 1
57
58 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
59 #doc:
60 #       (cd doc && $(MAKE) $@) || exit 1
61
62 install-end:
63 # finish libtool install
64 #       @$(LT) --mode=finish $(libdir)
65
66 install-include: $(include_list)
67         $(INSTALL) -d  $(includedir)
68         @for f in X $(include_list); do                         \
69            if test $$f != X; then                               \
70              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
71            fi;                                                  \
72         done
73
74 # install script in $(bindir) :
75 install-bin: $(BIN_SCRIPT)
76         $(INSTALL) -d  $(bindir)
77         $(INSTALL_PROGRAM) $^ $(bindir)
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