Salome HOME
a8adab1bd244fc7f52b375c1820acc218d9e93b3
[modules/visu.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 ModuleVisu.png \
21 Visu_anim.png \
22 Visu_cutplane.png \
23 Visu_cutlines.png \
24 Visu_deformed.png \
25 Visu_deformed_anim.png \
26 Visu_eraseall.png \
27 Visu_isosurfaces.png \
28 Visu_plot2d.png \
29 Visu_plot3d.png \
30 Visu_points.png \
31 Visu_sameas.png \
32 Visu_scalars.png \
33 Visu_scalars_anim.png \
34 Visu_selectall.png \
35 Visu_selectionactor.png \
36 Visu_selectioncell.png \
37 Visu_selectionedge.png \
38 Visu_selectionpoint.png \
39 Visu_selectonly.png \
40 Visu_surface.png \
41 Visu_vectors.png \
42 Visu_wireframe.png \
43 Visu_scaling.png \
44 VISU_en.xml \
45 VISU_fr.xml \
46 VISUCatalog.xml \
47 Visu_tree_visu.png \
48 Visu_streamlines.png
49
50 BIN_SCRIPT= \
51 VERSION
52
53
54 # copy header files in common directory
55 ifeq ($(HAVE_SSTREAM),yes)
56   include_list=include/salome/SALOMEconfig.h
57 else
58   include_list=include/salome/SALOMEconfig.h include/salome/sstream
59 endif
60
61 inc: idl $(include_list)
62
63 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
64         -$(RM) $@
65         $(LN_S) ../../$< $@
66
67 # test if SALOMEconfig.h has changed (contents)
68 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
69         @if ! [ -a $@ ]; then \
70           cp -p $< $@;        \
71         fi;                   \
72         if ! cmp $< $@; then  \
73           cp -p $< $@;        \
74         fi;                   \
75
76 include/salome/sstream: salome_adm/unix/sstream
77         -$(RM) $@
78         $(LN_S) ../../$< $@
79
80 depend: depend_idl
81
82 depend_idl:
83         (cd idl ; $(MAKE) $@) || exit 1
84
85 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
86 #doc:
87 #       (cd doc && $(MAKE) $@) || exit 1
88
89 install-end:
90 # finish libtool install
91 #       @$(LT) --mode=finish $(libdir)
92
93 install-include: $(include_list)
94         $(INSTALL) -d  $(includedir)
95         @for f in X $(include_list); do                         \
96            if test $$f != X; then                               \
97              ($(INSTALL_DATA) $$f $(includedir)/. || exit 1);   \
98            fi;                                                  \
99         done
100
101 # install script in $(bindir) :
102 install-bin: $(BIN_SCRIPT)
103         $(INSTALL) -d  $(bindir)
104         if test $(BIN_SCRIPT)X != X; then                       \
105                 $(INSTALL_PROGRAM) $^ $(bindir);                \
106         fi
107
108 uninstall: uninstall-idl
109
110 uninstall-idl:
111         $(RM) $(idldir)/*.idl
112
113 distclean: distclean-other
114
115 distclean-other:
116         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
117         -$(RM) salome_adm/unix/make_* 
118         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
119         -$(RM) config.cache config.log config.status 
120
121 @MODULE@
122
123 install: install-bin install-include install-end
124