Mercurial > pytave
annotate Makefile.am @ 149:6d9b4f69da66
Clean up build system functionality and style
* Makefile.am, configure.ac: Refactor and clean up unused variables. Use
style consistent with Octave. Add copyright header block.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 05 Apr 2016 11:02:51 -0700 |
parents | ed2438a2d77a |
children | a3dc9d24ae38 |
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 # |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
3 # 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
|
4 # Copyright (C) 2009 Jaroslav Hajek, VZLU Prague |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
5 # |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
6 # This file is part of Pytave. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
7 # |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
8 # 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
|
9 # 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
|
10 # 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
|
11 # option) any later version. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
12 # |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
13 # 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
|
14 # 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
|
15 # 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
|
16 # for more details. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
17 # |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
18 # 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
|
19 # 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
|
20 # <http://www.gnu.org/licenses/>. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
21 |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
22 ACLOCAL_AMFLAGS = -I m4 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
23 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
24 AM_CPPFLAGS = $(OCTAVE_CPPFLAGS) $(PYTHON_CPPFLAGS) -I$(NUMPY_INCLUDEDIR) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
25 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
26 COMMON_SOURCE_FILES = \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
27 exceptions.cc \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
28 octave_to_python.cc \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
29 python_to_octave.cc |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
30 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
31 OCT_FILES = \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
32 py.oct |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
33 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
34 PYTAVE_HEADER_FILES = \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
35 arrayobjectdefs.h \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
36 config.h \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
37 exceptions.h \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
38 octave_to_python.h \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
39 python_to_octave.h |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
40 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
41 PY_FILES = \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
42 package/__init__.py \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
43 package/pytave.py \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
44 test/exceptions.py \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
45 test/test.py |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
46 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
47 EXTRA_DIST = $(PY_FILES) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
48 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
49 EXTRA_libdir = $(PYTAVE_MODULE_INSTALL_PATH) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
50 EXTRA_lib_LTLIBRARIES = _pytave.la |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
51 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
52 _pytave_la_CPPFLAGS = $(AM_CPPFLAGS) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
53 _pytave_la_LDFLAGS = -module -L$(OCTAVE_LIBRARYDIR) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
54 _pytave_la_LIBADD = -l$(BOOST_PYTHON_LIB) $(OCTAVE_LIBS) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
55 _pytave_la_SOURCES = pytave.cc $(COMMON_SOURCE_FILES) $(PYTAVE_HEADER_FILES) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
56 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
57 CLEANFILES = *.oct |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
58 SUFFIXES = .oct |
115
00d19f71c9ca
Initial implementation of py oct-file
Mike Miller <mtmiller@octave.org>
parents:
104
diff
changeset
|
59 |
138
8b9b31acf632
build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
60 AM_V_MKOCTFILE = $(am__v_MKOCTFILE_$(V)) |
8b9b31acf632
build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
61 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
|
62 am__v_MKOCTFILE_0 = @echo " MKOCTFIL" $@; |
8b9b31acf632
build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
63 am__v_MKOCTFILE_1 = |
8b9b31acf632
build: Apply silent rules to mkoctfile
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
64 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
65 OCT_LIBS = -l$(BOOST_PYTHON_LIB) $(PYTHON_LIBS) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
66 OCT_LINK = $(MKOCTFILE) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
67 $(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
|
68 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
69 %.oct: %.cc $(PYTAVE_HEADER_FILES) |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
70 $(AM_V_MKOCTFILE)$(OCT_LINK) $< $(COMMON_SOURCE_FILES) $(OCT_LIBS) |
115
00d19f71c9ca
Initial implementation of py oct-file
Mike Miller <mtmiller@octave.org>
parents:
104
diff
changeset
|
71 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
148
diff
changeset
|
72 all-local: $(OCT_FILES) |
148
ed2438a2d77a
* Makefile.am (check-local): New target to run test scripts.
Mike Miller <mtmiller@octave.org>
parents:
138
diff
changeset
|
73 |
ed2438a2d77a
* Makefile.am (check-local): New target to run test scripts.
Mike Miller <mtmiller@octave.org>
parents:
138
diff
changeset
|
74 check-local: |
ed2438a2d77a
* Makefile.am (check-local): New target to run test scripts.
Mike Miller <mtmiller@octave.org>
parents:
138
diff
changeset
|
75 PYTHONPATH="$$(pwd)/package:$$(pwd)/.libs" $(PYTHON) test/exceptions.py |
ed2438a2d77a
* Makefile.am (check-local): New target to run test scripts.
Mike Miller <mtmiller@octave.org>
parents:
138
diff
changeset
|
76 PYTHONPATH="$$(pwd)/package:$$(pwd)/.libs" $(PYTHON) test/test.py |