Salome HOME
GEOM porting to CMake
[modules/geom.git] / doc / salome / examples / Makefile.am
1 # Copyright (C) 2007-2013  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/GEOM
28
29 BAD_TESTS = \
30         repairing_operations_ex09.py 
31
32 GOOD_TESTS = \
33         3dsketcher.py \
34         advanced_geom_objs_ex01.py \
35         advanced_geom_objs_ex02.py \
36         advanced_geom_objs_ex03.py \
37         angle.py \
38         arranging_study_objects.py \
39         basic_geom_objs_ex01.py \
40         basic_geom_objs_ex02.py \
41         basic_geom_objs_ex03.py \
42         basic_geom_objs_ex04.py \
43         basic_geom_objs_ex05.py \
44         basic_geom_objs_ex06.py \
45         basic_geom_objs_ex07.py \
46         basic_geom_objs_ex08.py \
47         basic_geom_objs_ex09.py \
48         basic_operations_ex01.py \
49         basic_operations_ex02.py \
50         basic_operations_ex03.py \
51         basic_properties.py \
52         blocks_operations_ex01.py \
53         blocks_operations_ex02.py \
54         blocks_operations_ex03.py \
55         boolean_operations_ex01.py \
56         boolean_operations_ex02.py \
57         boolean_operations_ex03.py \
58         boolean_operations_ex04.py \
59         bounding_box.py \
60         building_by_blocks_ex01.py \
61         building_by_blocks_ex02.py \
62         center_of_mass.py \
63         check_compound_of_blocks.py \
64         check_self_intersections.py \
65         check_shape.py \
66         complex_objs_ex01.py \
67         complex_objs_ex02.py \
68         complex_objs_ex03.py \
69         complex_objs_ex04.py \
70         complex_objs_ex05.py \
71         complex_objs_ex06.py \
72         complex_objs_ex07.py \
73         complex_objs_ex08.py \
74         complex_objs_ex09.py \
75         complex_objs_ex10.py \
76         free_boundaries.py \
77         free_faces.py \
78         GEOM_box.py \
79         get_non_blocks.py \
80         import_export.py \
81         inertia.py \
82         min_distance.py \
83         normal_face.py \
84         notebook_geom.py \
85         point_coordinates.py \
86         primitives_ex01.py \
87         primitives_ex02.py \
88         primitives_ex03.py \
89         primitives_ex04.py \
90         primitives_ex05.py \
91         primitives_ex06.py \
92         primitives_ex07.py \
93         repairing_operations_ex01.py \
94         repairing_operations_ex02.py \
95         repairing_operations_ex03.py \
96         repairing_operations_ex04.py \
97         repairing_operations_ex05.py \
98         repairing_operations_ex06.py \
99         repairing_operations_ex07.py \
100         repairing_operations_ex08.py \
101         repairing_operations_ex10.py \
102         repairing_operations_ex11.py \
103         repairing_operations_ex12.py \
104         sketcher.py \
105         tolerance.py \
106         topological_geom_objs_ex01.py \
107         topological_geom_objs_ex02.py \
108         topological_geom_objs_ex03.py \
109         topological_geom_objs_ex04.py \
110         topological_geom_objs_ex05.py \
111         topological_geom_objs_ex06.py \
112         transformation_operations_ex01.py \
113         transformation_operations_ex02.py \
114         transformation_operations_ex03.py \
115         transformation_operations_ex04.py \
116         transformation_operations_ex05.py \
117         transformation_operations_ex06.py \
118         transformation_operations_ex07.py \
119         transformation_operations_ex08.py \
120         transformation_operations_ex09.py \
121         transformation_operations_ex10.py \
122         transformation_operations_ex11.py \
123         transformation_operations_ex12.py \
124         transformation_operations_ex13.py \
125         viewing_geom_objs_ex01.py \
126         viewing_geom_objs_ex02.py \
127         viewing_geom_objs_ex03.py \
128         viewing_geom_objs_ex04.py \
129         whatis.py \
130         working_with_groups_ex01.py \
131         working_with_groups_ex02.py \
132         working_with_groups_ex03.py \
133         working_with_groups_ex04.py \
134         working_with_groups_ex05.py \
135         working_with_groups_ex06.py
136
137 pyexamples_SCRIPTS = $(BAD_TESTS) $(GOOD_TESTS)
138
139 EXTRA_DIST += $(pyexamples_SCRIPTS) testme.py
140
141 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
142 THIS_LD_LIBRARY_PATH = $(KERNEL_ROOT_DIR)/lib/salome
143
144 installcheck-local:
145         @for f in $(GOOD_TESTS) ; do \
146           GEOM_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; \
147         done