Salome HOME
Merge from V6_main 19/03/2013
[modules/smesh.git] / doc / salome / examples / Makefile.am
1 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  File   : Makefile
21 #  Author : Alexander KOVALEV (Open Cascade NN)
22 #  Modified by : 
23 #  Module : doc
24 #
25 include $(top_srcdir)/adm_local/unix/make_common_starter.am
26
27 pyexamplesdir = $(docdir)/examples/SMESH
28
29 BAD_TESTS = \
30         3dmesh.py \
31         creating_meshes_ex01.py \
32         creating_meshes_ex03.py \
33         creating_meshes_ex05.py \
34         defining_hypotheses_ex06.py \
35         defining_hypotheses_ex09.py \
36         defining_hypotheses_ex17.py \
37         filters_ex02.py \
38         filters_ex08.py \
39         filters_ex23.py \
40         filters_ex24.py \
41         filters_ex25.py \
42         filters_ex32.py \
43         filters_ex35.py \
44         generate_flat_elements.py \
45         modifying_meshes_ex26.py \
46         notebook_smesh.py \
47         quality_controls_ex06.py \
48         quality_controls_ex20.py \
49         quality_controls_ex21.py \
50         quality_controls_ex22.py \
51         viewing_meshes_ex01.py 
52
53 GOOD_TESTS = \
54         cartesian_algo.py \
55         creating_meshes_ex02.py \
56         creating_meshes_ex04.py \
57         creating_meshes_ex06.py \
58         creating_meshes_ex07.py \
59         creating_meshes_ex08.py \
60         defining_hypotheses_ex01.py \
61         defining_hypotheses_ex02.py \
62         defining_hypotheses_ex03.py \
63         defining_hypotheses_ex04.py \
64         defining_hypotheses_ex05.py \
65         defining_hypotheses_ex07.py \
66         defining_hypotheses_ex08.py \
67         defining_hypotheses_ex10.py \
68         defining_hypotheses_ex11.py \
69         defining_hypotheses_ex12.py \
70         defining_hypotheses_ex13.py \
71         defining_hypotheses_ex14.py \
72         defining_hypotheses_ex15.py \
73         defining_hypotheses_ex16.py \
74         filters_ex01.py \
75         filters_ex03.py \
76         filters_ex04.py \
77         filters_ex05.py \
78         filters_ex06.py \
79         filters_ex07.py \
80         filters_ex09.py \
81         filters_ex10.py \
82         filters_ex11.py \
83         filters_ex12.py \
84         filters_ex13.py \
85         filters_ex14.py \
86         filters_ex15.py \
87         filters_ex16.py \
88         filters_ex17.py \
89         filters_ex18.py \
90         filters_ex19.py \
91         filters_ex20.py \
92         filters_ex21.py \
93         filters_ex22.py \
94         filters_ex26.py \
95         filters_ex27.py \
96         filters_ex28.py \
97         filters_ex29.py \
98         filters_ex30.py \
99         filters_ex31.py \
100         filters_ex33.py \
101         filters_ex34.py \
102         filters_ex36.py \
103         grouping_elements_ex01.py \
104         grouping_elements_ex02.py \
105         grouping_elements_ex03.py \
106         grouping_elements_ex04.py \
107         grouping_elements_ex05.py \
108         grouping_elements_ex06.py \
109         grouping_elements_ex07.py \
110         grouping_elements_ex08.py \
111         measurements_ex01.py \
112         measurements_ex02.py \
113         modifying_meshes_ex01.py \
114         modifying_meshes_ex02.py \
115         modifying_meshes_ex03.py \
116         modifying_meshes_ex04.py \
117         modifying_meshes_ex05.py \
118         modifying_meshes_ex06.py \
119         modifying_meshes_ex07.py \
120         modifying_meshes_ex08.py \
121         modifying_meshes_ex09.py \
122         modifying_meshes_ex10.py \
123         modifying_meshes_ex11.py \
124         modifying_meshes_ex12.py \
125         modifying_meshes_ex13.py \
126         modifying_meshes_ex14.py \
127         modifying_meshes_ex15.py \
128         modifying_meshes_ex16.py \
129         modifying_meshes_ex17.py \
130         modifying_meshes_ex18.py \
131         modifying_meshes_ex19.py \
132         modifying_meshes_ex20.py \
133         modifying_meshes_ex21.py \
134         modifying_meshes_ex22.py \
135         modifying_meshes_ex23.py \
136         modifying_meshes_ex24.py \
137         modifying_meshes_ex25.py \
138         prism_3d_algo.py \
139         quality_controls_ex01.py \
140         quality_controls_ex02.py \
141         quality_controls_ex03.py \
142         quality_controls_ex04.py \
143         quality_controls_ex05.py \
144         quality_controls_ex07.py \
145         quality_controls_ex08.py \
146         quality_controls_ex09.py \
147         quality_controls_ex10.py \
148         quality_controls_ex11.py \
149         quality_controls_ex12.py \
150         quality_controls_ex13.py \
151         quality_controls_ex14.py \
152         quality_controls_ex15.py \
153         quality_controls_ex16.py \
154         quality_controls_ex17.py \
155         quality_controls_ex18.py \
156         quality_controls_ex19.py \
157         transforming_meshes_ex01.py \
158         transforming_meshes_ex02.py \
159         transforming_meshes_ex03.py \
160         transforming_meshes_ex04.py \
161         transforming_meshes_ex05.py \
162         transforming_meshes_ex06.py \
163         transforming_meshes_ex07.py \
164         transforming_meshes_ex08.py \
165         transforming_meshes_ex09.py \
166         transforming_meshes_ex10.py \
167         transforming_meshes_ex11.py \
168         transforming_meshes_ex12.py \
169         transforming_meshes_ex13.py \
170         use_existing_faces.py \
171         viewing_meshes_ex02.py
172
173 pyexamples_SCRIPTS = $(BAD_TESTS) $(GOOD_TESTS)
174
175 EXTRA_DIST += $(pyexamples_SCRIPTS) testme.py
176
177 THIS_PYTHONPATH = $(KERNEL_ROOT_DIR)/bin/salome:$(KERNEL_ROOT_DIR)/lib/python$(PYTHON_VERSION)/site-packages/salome:$(KERNEL_ROOT_DIR)/lib64/python$(PYTHON_VERSION)/site-packages/salome
178 THIS_LD_LIBRARY_PATH = $(KERNEL_ROOT_DIR)/lib/salome
179
180 installcheck-local:
181         @for f in $(GOOD_TESTS) ; do \
182           SMESH_ROOT_DIR=$(prefix) PYTHONPATH=$(THIS_PYTHONPATH):${PYTHONPATH} LD_LIBRARY_PATH=$(THIS_LD_LIBRARY_PATH):${LD_LIBRARY_PATH} python -B $(top_srcdir)/doc/salome/examples/testme.py $(top_srcdir)/doc/salome/examples/$$f || exit 1; \
183         done