annotate Makefile.am @ 423:6b9de18b4bdd

Eliminate remaining custom exception handling in favor of Octave errors * oct-py-error.cc, oct-py-error.h (pytave::error_python_exception): New function to generate an Octave error from an active Python error condition, based on pytave::fetch_exception_message. * oct-py-eval.cc (pytave::py_call_function, pytave::py_run_string_safe): Use it. * oct-py-types.cc (pytave::make_py_dict): Likewise. * oct-py-util.cc (pytave::py_objstore): Likewise. * pycall.cc (Fpycall): Remove exception handling logic. * pyeval.cc (Fpyeval): Likewise. * pyexec.cc (Fpyexec): Likewise. * exceptions.cc, exceptions.h: Delete. * Makefile.am (COMMON_SOURCE_FILES, PYTAVE_HEADER_FILES): Remove them.
author Mike Miller <mtmiller@octave.org>
date Thu, 04 May 2017 21:15:07 -0700
parents 8247f298fd16
children 14b134ffdc24
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
1 # Makefile for Pytave
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
2 #
150
a3dc9d24ae38 maint: Add myself to copyright notices
Mike Miller <mtmiller@octave.org>
parents: 149
diff changeset
3 # Copyright (C) 2015-2016 Mike Miller
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
4 # Copyright (C) 2008 David Grundberg, HÃ¥kan Fors Nilsson
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
5 # Copyright (C) 2009 Jaroslav Hajek, VZLU Prague
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
6 #
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
7 # This file is part of Pytave.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
8 #
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
9 # Pytave is free software: you can redistribute it and/or modify it
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
10 # under the terms of the GNU General Public License as published by the
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
11 # Free Software Foundation, either version 3 of the License, or (at your
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
12 # option) any later version.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
13 #
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
14 # Pytave is distributed in the hope that it will be useful, but WITHOUT
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
16 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
17 # for more details.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
18 #
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
19 # You should have received a copy of the GNU General Public License
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
20 # along with Pytave; see the file COPYING. If not, see
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
21 # <http://www.gnu.org/licenses/>.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
22
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
23 ACLOCAL_AMFLAGS = -I m4
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
24
413
4f415a887ff8 build: drop build-time dependency on NumPy
Mike Miller <mtmiller@octave.org>
parents: 412
diff changeset
25 AM_CPPFLAGS = $(OCTAVE_CPPFLAGS) $(PYTHON_CPPFLAGS)
420
7864849e84c2 Eliminate some compiler warnings
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
26 AM_CXXFLAGS = -W -Wall
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
27
311
77af526c687a build: ensure project config.h is included properly
Mike Miller <mtmiller@octave.org>
parents: 306
diff changeset
28 INCFLAGS = $(DEFAULT_INCLUDES)
77af526c687a build: ensure project config.h is included properly
Mike Miller <mtmiller@octave.org>
parents: 306
diff changeset
29 export INCFLAGS
77af526c687a build: ensure project config.h is included properly
Mike Miller <mtmiller@octave.org>
parents: 306
diff changeset
30
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
31 COMMON_SOURCE_FILES = \
422
8247f298fd16 Raise Octave errors instead of exceptions for conversion errors
Mike Miller <mtmiller@octave.org>
parents: 420
diff changeset
32 oct-py-error.cc \
335
9b862844e6b7 Enable Python print function in evaluated expressions (fixes issue #48)
Mike Miller <mtmiller@octave.org>
parents: 331
diff changeset
33 oct-py-eval.cc \
405
478d83448b0b Refactor Python initialization into a common function
Mike Miller <mtmiller@octave.org>
parents: 398
diff changeset
34 oct-py-init.cc \
320
c2aa34730dc9 Convert scalar struct into Python dict (fixes issue #57)
Mike Miller <mtmiller@octave.org>
parents: 311
diff changeset
35 oct-py-types.cc \
411
3613ffbd52b2 Overhaul implicit conversion of arguments and return values
Mike Miller <mtmiller@octave.org>
parents: 405
diff changeset
36 oct-py-util.cc
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
37
159
a323f9fae46b doc: Reformat INSTALL and README in Markdown
Mike Miller <mtmiller@octave.org>
parents: 150
diff changeset
38 DOC_FILES = \
a323f9fae46b doc: Reformat INSTALL and README in Markdown
Mike Miller <mtmiller@octave.org>
parents: 150
diff changeset
39 INSTALL.md \
a323f9fae46b doc: Reformat INSTALL and README in Markdown
Mike Miller <mtmiller@octave.org>
parents: 150
diff changeset
40 README.md
a323f9fae46b doc: Reformat INSTALL and README in Markdown
Mike Miller <mtmiller@octave.org>
parents: 150
diff changeset
41
383
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
42 M_FILES = \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
43 @py/py.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
44 @py/subsref.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
45 @pyobject/cell.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
46 @pyobject/char.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
47 @pyobject/display.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
48 @pyobject/dummy.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
49 @pyobject/fieldnames.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
50 @pyobject/methods.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
51 @pyobject/pyobject.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
52 @pyobject/subsasgn.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
53 @pyobject/subsref.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
54 __py_tests__.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
55 pyargs.m \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
56 pyversion.m
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
57
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
58 OCT_FILES = \
345
baff3b90dcb1 __py_struct_from_dict__: new private compiled conversion function
Mike Miller <mtmiller@octave.org>
parents: 335
diff changeset
59 __py_struct_from_dict__.oct \
172
29d9da90afcf pycall: New function to pass Octave values to a Python function
Mike Miller <mtmiller@octave.org>
parents: 168
diff changeset
60 pycall.oct \
161
dfea7eee7749 add pyexec and pyeval commands
Colin Macdonald <cbm@m.fsf.org>
parents: 159
diff changeset
61 pyeval.oct \
dfea7eee7749 add pyexec and pyeval commands
Colin Macdonald <cbm@m.fsf.org>
parents: 159
diff changeset
62 pyexec.oct
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
63
188
4adc5d020dda build: fix automake warning about variable naming conflict
Mike Miller <mtmiller@octave.org>
parents: 172
diff changeset
64 OCT_SOURCE_FILES = $(patsubst %.oct, %.cc, $(OCT_FILES))
168
f687155dcb7c build: allow dist and distcheck targets to work
Mike Miller <mtmiller@octave.org>
parents: 165
diff changeset
65
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
66 PYTAVE_HEADER_FILES = \
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
67 config.h \
422
8247f298fd16 Raise Octave errors instead of exceptions for conversion errors
Mike Miller <mtmiller@octave.org>
parents: 420
diff changeset
68 oct-py-error.h \
335
9b862844e6b7 Enable Python print function in evaluated expressions (fixes issue #48)
Mike Miller <mtmiller@octave.org>
parents: 331
diff changeset
69 oct-py-eval.h \
405
478d83448b0b Refactor Python initialization into a common function
Mike Miller <mtmiller@octave.org>
parents: 398
diff changeset
70 oct-py-init.h \
398
3905052ebe1d maint: sort uses of new header file oct-py-object.h
Mike Miller <mtmiller@octave.org>
parents: 397
diff changeset
71 oct-py-object.h \
320
c2aa34730dc9 Convert scalar struct into Python dict (fixes issue #57)
Mike Miller <mtmiller@octave.org>
parents: 311
diff changeset
72 oct-py-types.h \
411
3613ffbd52b2 Overhaul implicit conversion of arguments and return values
Mike Miller <mtmiller@octave.org>
parents: 405
diff changeset
73 oct-py-util.h
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
74
383
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
75 TST_FILES = $(addsuffix -tst,$(OCT_SOURCE_FILES))
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
76
388
ce61206a61f8 build: make distcheck pass again
Mike Miller <mtmiller@octave.org>
parents: 387
diff changeset
77 EXTRA_DIST = $(DOC_FILES) $(M_FILES) $(OCT_SOURCE_FILES)
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
78
391
70071a5512de build: rename internal convenience library to liboctpython.la
Mike Miller <mtmiller@octave.org>
parents: 389
diff changeset
79 noinst_LTLIBRARIES = liboctpython.la
70071a5512de build: rename internal convenience library to liboctpython.la
Mike Miller <mtmiller@octave.org>
parents: 389
diff changeset
80 liboctpython_la_CPPFLAGS = $(AM_CPPFLAGS)
70071a5512de build: rename internal convenience library to liboctpython.la
Mike Miller <mtmiller@octave.org>
parents: 389
diff changeset
81 liboctpython_la_SOURCES = $(COMMON_SOURCE_FILES) $(PYTAVE_HEADER_FILES)
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
82
383
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
83 CLEANFILES = *.oct *-tst PKG_ADD PKG_DEL fntests.log
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
84 SUFFIXES = .oct
115
00d19f71c9ca Initial implementation of py oct-file
Mike Miller <mtmiller@octave.org>
parents: 104
diff changeset
85
138
8b9b31acf632 build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
86 AM_V_MKOCTFILE = $(am__v_MKOCTFILE_$(V))
8b9b31acf632 build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
87 am__v_MKOCTFILE_ = $(am__v_MKOCTFILE_$(AM_DEFAULT_VERBOSITY))
8b9b31acf632 build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
88 am__v_MKOCTFILE_0 = @echo " MKOCTFIL" $@;
8b9b31acf632 build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
89 am__v_MKOCTFILE_1 =
8b9b31acf632 build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
90
416
aeed116cf9f9 build: drop build-time dependency on Boost
Mike Miller <mtmiller@octave.org>
parents: 413
diff changeset
91 OCT_LIBS = liboctpython.la $(PYTHON_LIBS)
164
bc4f2e6f7b69 build: Allow parallel building of oct files by using an intermediate library
Mike Miller <mtmiller@octave.org>
parents: 161
diff changeset
92 OCT_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
bc4f2e6f7b69 build: Allow parallel building of oct files by using an intermediate library
Mike Miller <mtmiller@octave.org>
parents: 161
diff changeset
93 --mode=link $(MKOCTFILE) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 148
diff changeset
94 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
115
00d19f71c9ca Initial implementation of py oct-file
Mike Miller <mtmiller@octave.org>
parents: 104
diff changeset
95
391
70071a5512de build: rename internal convenience library to liboctpython.la
Mike Miller <mtmiller@octave.org>
parents: 389
diff changeset
96 %.oct: %.cc liboctpython.la $(PYTAVE_HEADER_FILES)
164
bc4f2e6f7b69 build: Allow parallel building of oct files by using an intermediate library
Mike Miller <mtmiller@octave.org>
parents: 161
diff changeset
97 $(AM_V_MKOCTFILE)$(OCT_LINK) $< $(OCT_LIBS)
115
00d19f71c9ca Initial implementation of py oct-file
Mike Miller <mtmiller@octave.org>
parents: 104
diff changeset
98
383
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
99 %.cc-tst: %.cc
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
100 $(AM_V_GEN)rm -f $@-t $@ && \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
101 ( echo "## DO NOT EDIT! Generated automatically from $(<F) by Make."; \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
102 $(GREP) '^%!' $< \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
103 ) > $@-t && \
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
104 mv $@-t $@
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
105
354
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
106 PKG_ADD: $(OCT_SOURCE_FILES)
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
107 $(AM_V_GEN)for f in $(OCT_SOURCE_FILES); do \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
108 b=$${f%.cc}; \
388
ce61206a61f8 build: make distcheck pass again
Mike Miller <mtmiller@octave.org>
parents: 387
diff changeset
109 if test -f $$f; then d=.; else d=$(srcdir); fi; \
ce61206a61f8 build: make distcheck pass again
Mike Miller <mtmiller@octave.org>
parents: 387
diff changeset
110 funcs=`$(SED) -n 's/^DEFUN.*(\(\w\+\),.*/\1/p' $$d/$$f | grep -v $$b`; \
354
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
111 if test -n "$$funcs"; then \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
112 echo "$$funcs" | $(SED) "s/.*/autoload (\"&\", \"$$b.oct\");/" > $@-t && \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
113 mv $@-t $@ || exit $?; \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
114 fi; \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
115 done
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
116
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
117 PKG_DEL: $(OCT_SOURCE_FILES)
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
118 $(AM_V_GEN)for f in $(OCT_SOURCE_FILES); do \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
119 b=$${f%.cc}; \
388
ce61206a61f8 build: make distcheck pass again
Mike Miller <mtmiller@octave.org>
parents: 387
diff changeset
120 if test -f $$f; then d=.; else d=$(srcdir); fi; \
ce61206a61f8 build: make distcheck pass again
Mike Miller <mtmiller@octave.org>
parents: 387
diff changeset
121 funcs=`$(SED) -n 's/^DEFUN.*(\(\w\+\),.*/\1/p' $$d/$$f | grep -v $$b`; \
354
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
122 if test -n "$$funcs"; then \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
123 echo "$$funcs" | $(SED) "s/.*/autoload (\"&\", which (\"&\"), \"remove\");/" > $@-t && \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
124 mv $@-t $@ || exit $?; \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
125 fi; \
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
126 done
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
127
eec3ed1c0578 build: generate PKG_ADD and PKG_DEL files from DEFUN_DLD declarations
Mike Miller <mtmiller@octave.org>
parents: 345
diff changeset
128 all-local: $(OCT_FILES) PKG_ADD PKG_DEL
165
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
129 @echo ""
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
130 @echo "Pytave successfully built. Now choose from the following:"
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
131 @echo ""
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
132 @echo " * run the test suite"
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
133 @echo " make check"
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
134 @echo ""
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
135 @echo " * run an Octave session with py* functions"
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
136 @echo " octave --path=\"\$$(pwd)\""
c0964adb41fc build: Output a hint about what to do next after a successful build
Mike Miller <mtmiller@octave.org>
parents: 164
diff changeset
137 @echo ""
148
ed2438a2d77a * Makefile.am (check-local): New target to run test scripts.
Mike Miller <mtmiller@octave.org>
parents: 138
diff changeset
138
383
d18843ff4dfd Rewrite the test suite to run Octave-style built-in tests
Mike Miller <mtmiller@octave.org>
parents: 354
diff changeset
139 check-local: $(M_FILES) $(TST_FILES)
385
132fec49e438 build: support user selection of Octave version or prefix or both
Mike Miller <mtmiller@octave.org>
parents: 383
diff changeset
140 $(OCTAVE) --no-gui-libs --no-history --no-window-system --norc \
132fec49e438 build: support user selection of Octave version or prefix or both
Mike Miller <mtmiller@octave.org>
parents: 383
diff changeset
141 --path="$(abs_builddir)" --path="$(abs_srcdir)" \
388
ce61206a61f8 build: make distcheck pass again
Mike Miller <mtmiller@octave.org>
parents: 387
diff changeset
142 $(srcdir)/__py_tests__.m $(M_FILES) $(TST_FILES)