410
|
1 # Makefile for octave's test directory |
|
2 # |
7017
|
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2006, 2007 |
|
4 # John W. Eaton |
|
5 # |
7016
|
6 # This file is part of Octave. |
|
7 # |
|
8 # Octave is free software; you can redistribute it and/or modify it |
|
9 # under the terms of the GNU General Public License as published by the |
|
10 # Free Software Foundation; either version 3 of the License, or (at |
|
11 # your option) any later version. |
|
12 # |
|
13 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 # for more details. |
|
17 # |
|
18 # You should have received a copy of the GNU General Public License |
|
19 # along with Octave; see the file COPYING. If not, see |
|
20 # <http://www.gnu.org/licenses/>. |
410
|
21 |
|
22 TOPDIR = .. |
|
23 |
|
24 srcdir = @srcdir@ |
|
25 top_srcdir = @top_srcdir@ |
|
26 VPATH = @srcdir@ |
|
27 |
|
28 include $(TOPDIR)/Makeconf |
|
29 |
5590
|
30 SOURCES = $(wildcard $(srcdir)/test_*.m) |
410
|
31 |
6797
|
32 DISTFILES = $(addprefix $(srcdir)/, ChangeLog Makefile.in \ |
6796
|
33 build_sparse_tests.sh fntests.m) $(SOURCES) |
410
|
34 |
|
35 OCTAVE_BINARY = ../src/octave |
|
36 |
3174
|
37 ifeq ($(SHARED_LIBS), true) |
|
38 OCTAVE_LD_LIBRARY_PATH = `pwd`/../src:`pwd`/../liboctave:`pwd`/../libcruft |
4104
|
39 ifeq ($(@library_path_var@),) |
3174
|
40 XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH) |
|
41 else |
4104
|
42 XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH):$(@library_path_var@) |
3174
|
43 endif |
4104
|
44 SET_LD_LIBRARY_PATH = @library_path_var@="$(XLD_LIBRARY_PATH)" |
3174
|
45 endif |
|
46 |
410
|
47 all: check |
|
48 .PHONY: all |
|
49 |
5590
|
50 check: test_sparse.m |
6330
|
51 ../run-octave --norc --silent --no-history $(srcdir)/fntests.m $(srcdir) |
5590
|
52 .PHONY: check |
410
|
53 |
5590
|
54 test_sparse.m: build_sparse_tests.sh |
|
55 $(srcdir)/build_sparse_tests.sh |
410
|
56 |
2811
|
57 install install-strip: all |
|
58 .PHONY: install install-strip |
410
|
59 |
|
60 uninstall: |
|
61 .PHONY: uninstall |
|
62 |
|
63 tags: $(SOURCES) |
|
64 ctags $(SOURCES) |
|
65 |
|
66 TAGS: $(SOURCES) |
|
67 etags $(SOURCES) |
|
68 |
|
69 clean: |
6488
|
70 rm -f fntests.log a.wav |
410
|
71 .PHONY: clean |
|
72 |
|
73 mostlyclean: |
|
74 .PHONY: mostlyclean |
|
75 |
|
76 distclean: clean |
5866
|
77 rm -f Makefile test_sparse.m |
410
|
78 .PHONY: distclean |
|
79 |
1391
|
80 maintainer-clean: distclean |
410
|
81 rm -f tags TAGS |
1391
|
82 .PHONY: maintainer-clean |
410
|
83 |
|
84 dist: |
6467
|
85 ln $(DISTFILES) ../`cat ../.fname`/test |
410
|
86 .PHONY: dist |