410
|
1 # |
|
2 # Makefile for octave's test directory |
|
3 # |
|
4 # John W. Eaton |
|
5 # jwe@che.utexas.edu |
|
6 # Department of Chemical Engineering |
|
7 # The University of Texas at Austin |
|
8 |
|
9 TOPDIR = .. |
|
10 |
|
11 srcdir = @srcdir@ |
|
12 top_srcdir = @top_srcdir@ |
|
13 VPATH = @srcdir@ |
|
14 |
|
15 include $(TOPDIR)/Makeconf |
|
16 |
|
17 SOURCES = |
|
18 |
|
19 DISTFILES = Makefile.in $(SOURCES) |
|
20 |
|
21 SUBDIRS = |
|
22 |
|
23 OCTAVE_BINARY = ../src/octave |
|
24 |
1051
|
25 OCTAVE_SCRIPT_PATH = $(srcdir)/../scripts// |
410
|
26 |
|
27 # Complete directory trees to distribute. |
|
28 DISTDIRS = config octave.test |
|
29 |
|
30 all: check |
|
31 .PHONY: all |
|
32 |
|
33 check: |
|
34 @if test -n "$(RUNTEST)" ; then \ |
|
35 $(RUNTEST) \ |
|
36 OCTAVE="$(OCTAVE_BINARY)" \ |
|
37 OCTAVE_SCRIPT_PATH="$(OCTAVE_SCRIPT_PATH)" \ |
948
|
38 --tool octave --srcdir $(srcdir) $(RUNTEST_FLAGS) ; \ |
410
|
39 else \ |
|
40 echo "***" ; \ |
|
41 echo "*** Sorry, I can't run tests without DejaGnu" ; \ |
|
42 echo "***" ; \ |
|
43 fi |
|
44 |
|
45 .PHONY: check |
|
46 |
|
47 install: all |
|
48 .PHONY: install |
|
49 |
|
50 uninstall: |
|
51 .PHONY: uninstall |
|
52 |
|
53 tags: $(SOURCES) |
|
54 ctags $(SOURCES) |
|
55 |
|
56 TAGS: $(SOURCES) |
|
57 etags $(SOURCES) |
|
58 |
|
59 clean: |
|
60 .PHONY: clean |
|
61 |
|
62 mostlyclean: |
|
63 .PHONY: mostlyclean |
|
64 |
|
65 distclean: clean |
|
66 rm -f Makefile |
|
67 .PHONY: distclean |
|
68 |
|
69 realclean: distclean |
|
70 rm -f tags TAGS |
|
71 .PHONY: realclean |
|
72 |
|
73 local-dist: |
|
74 ln $(DISTFILES) ../`cat ../.fname`/test |
|
75 for dir in $(DISTDIRS); do ln -s ../../test/$$dir ../`cat ../.fname`/test; done |
|
76 .PHONY: local-dist |
|
77 |
|
78 dist: |
|
79 ln $(DISTFILES) ../`cat ../.fname`/test |
|
80 for dir in $(DISTDIRS); do ln -s ../../test/$$dir ../`cat ../.fname`/test; done |
|
81 .PHONY: dist |