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