#
# Makefile for octave's test directory
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering
TOPDIR = ..
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
include $(TOPDIR)/Makeconf
SOURCES =
DISTFILES = Makefile.in $(SOURCES) ChangeLog
SUBDIRS =
OCTAVE_BINARY = ../src/octave
OCTAVE_SCRIPT_PATH = .:$(TOPDIR)/src//:$(srcdir)/../scripts//
ifeq ($(SHARED_LIBS), true)
OCTAVE_LD_LIBRARY_PATH = `pwd`/../src:`pwd`/../liboctave:`pwd`/../libcruft
ifeq ($(@library_path_var@),)
XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH)
else
XLD_LIBRARY_PATH = $(OCTAVE_LD_LIBRARY_PATH):$(@library_path_var@)
endif
SET_LD_LIBRARY_PATH = @library_path_var@="$(XLD_LIBRARY_PATH)"
endif
# Complete directory trees to distribute.
DISTDIRS = config octave.test
all: check
.PHONY: all
check:
@if test -n "$(RUNTEST)"; then \
$(SET_LD_LIBRARY_PATH) $(RUNTEST) \
OCTAVE="$(OCTAVE_BINARY)" \
OCTAVE_SCRIPT_PATH="$(OCTAVE_SCRIPT_PATH)" \
--tool octave --srcdir $(srcdir) $(RUNTEST_FLAGS) $(testsuite); \
else \
echo "***"; \
echo "*** Sorry, I can't run tests without DejaGnu"; \
echo "***"; \
fi
.PHONY: check
install install-strip: all
.PHONY: install install-strip
uninstall:
.PHONY: uninstall
tags: $(SOURCES)
ctags $(SOURCES)
TAGS: $(SOURCES)
etags $(SOURCES)
clean:
rm -f octave.log octave.sum
.PHONY: clean
mostlyclean:
.PHONY: mostlyclean
distclean: clean
rm -f Makefile
.PHONY: distclean
maintainer-clean: distclean
rm -f tags TAGS
.PHONY: maintainer-clean
dist:
ln $(DISTFILES) ../`cat ../.fname`/test
for dir in $(DISTDIRS); do ln -s ../../test/$$dir ../`cat ../.fname`/test; done
.PHONY: dist
syntax highlighted by Code2HTML, v. 0.9.1