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