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 |
5590
|
19 DISTFILES = ChangeLog Makefile.in build_sparse_tests.sh fntests.m $(SOURCES) |
410
|
20 |
|
21 OCTAVE_BINARY = ../src/octave |
|
22 |
3174
|
23 ifeq ($(SHARED_LIBS), true) |
|
24 OCTAVE_LD_LIBRARY_PATH = `pwd`/../src:`pwd`/../liboctave:`pwd`/../libcruft |
4104
|
25 ifeq ($(@library_path_var@),) |
3174
|
26 XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH) |
|
27 else |
4104
|
28 XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH):$(@library_path_var@) |
3174
|
29 endif |
4104
|
30 SET_LD_LIBRARY_PATH = @library_path_var@="$(XLD_LIBRARY_PATH)" |
3174
|
31 endif |
|
32 |
410
|
33 all: check |
|
34 .PHONY: all |
|
35 |
5590
|
36 check: test_sparse.m |
6330
|
37 ../run-octave --norc --silent --no-history $(srcdir)/fntests.m $(srcdir) |
5590
|
38 .PHONY: check |
410
|
39 |
5590
|
40 test_sparse.m: build_sparse_tests.sh |
|
41 $(srcdir)/build_sparse_tests.sh |
410
|
42 |
2811
|
43 install install-strip: all |
|
44 .PHONY: install install-strip |
410
|
45 |
|
46 uninstall: |
|
47 .PHONY: uninstall |
|
48 |
|
49 tags: $(SOURCES) |
|
50 ctags $(SOURCES) |
|
51 |
|
52 TAGS: $(SOURCES) |
|
53 etags $(SOURCES) |
|
54 |
|
55 clean: |
6488
|
56 rm -f fntests.log a.wav |
410
|
57 .PHONY: clean |
|
58 |
|
59 mostlyclean: |
|
60 .PHONY: mostlyclean |
|
61 |
|
62 distclean: clean |
5866
|
63 rm -f Makefile test_sparse.m |
410
|
64 .PHONY: distclean |
|
65 |
1391
|
66 maintainer-clean: distclean |
410
|
67 rm -f tags TAGS |
1391
|
68 .PHONY: maintainer-clean |
410
|
69 |
|
70 dist: |
6467
|
71 ln $(DISTFILES) ../`cat ../.fname`/test |
410
|
72 .PHONY: dist |