Salome HOME
Merge with branch V2_2_0_VISU_improvement
[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 examples doc
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 VISU.config \
47 VISUCatalog.xml \
48 Visu_tree_visu.png \
49 Visu_streamlines.png \
50 Visu_graduated_axes.png
51
52 BIN_SCRIPT= \
53 VERSION
54
55
56 # copy header files in common directory
57 ifeq ($(HAVE_SSTREAM),yes)
58   include_list=include/salome/SALOMEconfig.h
59 else
60   include_list=include/salome/SALOMEconfig.h include/salome/sstream
61 endif
62
63 inc: idl $(include_list)
64
65 include/salome/SALOMEconfig.h: salome_adm/unix/SALOMEconfig.ref
66         -$(RM) $@
67         $(LN_S) ../../$< $@
68
69 # test if SALOMEconfig.h has changed (contents)
70 salome_adm/unix/SALOMEconfig.ref: salome_adm/unix/SALOMEconfig.h
71         @if ! [ -a $@ ]; then \
72           cp -p -f $< $@;        \
73         fi;                   \
74         if ! cmp $< $@; then  \
75           cp -p -f $< $@;        \
76         fi;                   \
77
78 include/salome/sstream: salome_adm/unix/sstream
79         -$(RM) $@
80         $(LN_S) ../../$< $@
81
82 depend: depend_idl
83
84 depend_idl:
85         (cd idl ; $(MAKE) $@) || exit 1
86
87 # doc is already build : if you want to had documents, go manually to doc and run 'make doc'
88 #doc:
89 #       (cd doc && $(MAKE) $@) || exit 1
90
91 install-end:
92 # finish libtool install
93 #       @$(LT) --mode=finish $(libdir)
94
95 install-include: $(include_list)
96         $(INSTALL) -d  $(includedir)
97         @for f in X $(include_list); do                         \
98            if test $$f != X; then                               \
99              ($(INSTALL_DATA) -p $$f $(includedir)/. || exit 1);        \
100            fi;                                                  \
101         done
102
103 # install script in $(bindir) :
104 install-bin: $(BIN_SCRIPT)
105         $(INSTALL) -d  $(bindir)
106         if test $(BIN_SCRIPT)X != X; then                       \
107                 $(INSTALL_PROGRAM) $^ $(bindir);                \
108         fi
109
110 uninstall: uninstall-idl
111
112 uninstall-idl:
113         $(RM) $(idldir)/*.idl
114
115 distclean: distclean-other
116
117 distclean-other:
118         -$(RM) salome_adm/unix/*~ salome_adm/unix/*% salome_adm/unix/*.bak salome_adm/unix/*.new salome_adm/unix/*.old
119         -$(RM) salome_adm/unix/make_* 
120         -$(RM) salome_adm/unix/depend salome_adm/unix/SALOMEconfig.h 
121         -$(RM) config.cache config.log config.status 
122
123 @MODULE@
124
125 install: install-bin install-include install-end
126