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