410
|
1 # |
|
2 # Makefile for octave's test directory |
|
3 # |
|
4 # John W. Eaton |
1459
|
5 # jwe@bevo.che.wisc.edu |
|
6 # University of Wisconsin-Madison |
410
|
7 # Department of Chemical Engineering |
|
8 |
|
9 TOPDIR = .. |
|
10 |
|
11 srcdir = @srcdir@ |
|
12 top_srcdir = @top_srcdir@ |
|
13 VPATH = @srcdir@ |
|
14 |
|
15 include $(TOPDIR)/Makeconf |
|
16 |
5590
|
17 SOURCES = $(wildcard $(srcdir)/test_*.m) |
410
|
18 |
6797
|
19 DISTFILES = $(addprefix $(srcdir)/, ChangeLog Makefile.in \ |
6796
|
20 build_sparse_tests.sh fntests.m) $(SOURCES) |
410
|
21 |
|
22 OCTAVE_BINARY = ../src/octave |
|
23 |
3174
|
24 ifeq ($(SHARED_LIBS), true) |
|
25 OCTAVE_LD_LIBRARY_PATH = `pwd`/../src:`pwd`/../liboctave:`pwd`/../libcruft |
4104
|
26 ifeq ($(@library_path_var@),) |
3174
|
27 XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH) |
|
28 else |
4104
|
29 XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH):$(@library_path_var@) |
3174
|
30 endif |
4104
|
31 SET_LD_LIBRARY_PATH = @library_path_var@="$(XLD_LIBRARY_PATH)" |
3174
|
32 endif |
|
33 |
410
|
34 all: check |
|
35 .PHONY: all |
|
36 |
5590
|
37 check: test_sparse.m |
6330
|
38 ../run-octave --norc --silent --no-history $(srcdir)/fntests.m $(srcdir) |
5590
|
39 .PHONY: check |
410
|
40 |
5590
|
41 test_sparse.m: build_sparse_tests.sh |
|
42 $(srcdir)/build_sparse_tests.sh |
410
|
43 |
2811
|
44 install install-strip: all |
|
45 .PHONY: install install-strip |
410
|
46 |
|
47 uninstall: |
|
48 .PHONY: uninstall |
|
49 |
|
50 tags: $(SOURCES) |
|
51 ctags $(SOURCES) |
|
52 |
|
53 TAGS: $(SOURCES) |
|
54 etags $(SOURCES) |
|
55 |
|
56 clean: |
6488
|
57 rm -f fntests.log a.wav |
410
|
58 .PHONY: clean |
|
59 |
|
60 mostlyclean: |
|
61 .PHONY: mostlyclean |
|
62 |
|
63 distclean: clean |
5866
|
64 rm -f Makefile test_sparse.m |
410
|
65 .PHONY: distclean |
|
66 |
1391
|
67 maintainer-clean: distclean |
410
|
68 rm -f tags TAGS |
1391
|
69 .PHONY: maintainer-clean |
410
|
70 |
|
71 dist: |
6467
|
72 ln $(DISTFILES) ../`cat ../.fname`/test |
410
|
73 .PHONY: dist |