]> SALOME platform Git repositories - samples/sierpinsky.git/blob - Makefile.in
Salome HOME
Fix to bug PAL10465.
[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:./bin/salome:./resources:@top_srcdir@/resources:./bin:@top_srcdir@/idl
13
14
15 @COMMENCE@
16
17 SUBDIRS = idl src adm_local
18
19 RESOURCES_FILES = \
20         SIERPINSKYCatalog.xml \
21         SIERPINSKY.png \
22         go.png \
23         graph1.xml \
24         graph2.xml \
25         SalomeApp.xml
26
27 BIN_SCRIPT = VERSION
28
29 # copy header files in common directory
30
31 include_list = include/salome/SALOMEconfig.h \
32                include/salome/SIERPINSKY_version.h
33
34 ifneq ($(HAVE_SSTREAM),yes)
35         include_list += include/salome/sstream
36 endif
37
38 inc: idl $(include_list)
39
40 bin: bin/salome/VERSION
41
42 bin/salome/VERSION : bin/VERSION
43         -$(RM) $@
44         $(LN_S) ../../$< $@
45
46 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
47         -$(RM) $@
48         $(LN_S) ../../$< $@
49
50 # test if SALOMEconfig.h has changed (contents)
51 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
52         @if ! [ -a $@ ]; then \
53           cp -p -f $< $@;        \
54         fi;                   \
55         if ! cmp $< $@; then  \
56           cp -p -f $< $@;        \
57         fi;                   \
58
59 include/salome/sstream: salome_adm/unix/sstream
60         -$(RM) $@
61         $(LN_S) ../../$< $@
62
63 include/salome/SIERPINSKY_version.h: SIERPINSKY_version.h
64         -$(RM) $@
65         $(LN_S) ../../$< $@
66
67 depend: depend_idl
68
69 depend_idl:
70         (cd idl ; $(MAKE) $@) || exit 1
71
72 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
73 #doc:
74 #       (cd doc && $(MAKE) $@) || exit 1
75
76 install-end:
77 # finish libtool install
78 #       @$(LT) --mode=finish $(libdir)
79
80 install-include: $(include_list)
81         $(INSTALL) -d  $(includedir)
82         @for f in X $(include_list); do                         \
83            if test $$f != X; then                               \
84              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
85            fi;                                                  \
86         done
87
88 # install script in $(bindir) :
89 install-bin: $(BIN_SCRIPT)
90         $(INSTALL) -d  $(bindir)
91         $(INSTALL_PROGRAM) $^ $(bindir)
92
93 uninstall: uninstall-idl
94
95 uninstall-idl:
96         $(RM) $(idldir)/*.idl
97
98 distclean: distclean-other
99
100 distclean-other:
101         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
102         -$(RM) salome_adm/unix/make_* 
103         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
104         -$(RM) config.cache config.log config.status 
105
106 @MODULE@
107
108 install: install-bin install-include install-end
109