view test/Makefile.in @ 5851:acb4a1e0b311 ss-2-9-6

[project @ 2006-06-09 16:34:42 by jwe]
author jwe
date Fri, 09 Jun 2006 16:37:20 +0000
parents faafc2d98b8d
children f9ac7ebf0e19
line wrap: on
line source

#
# 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 = $(wildcard $(srcdir)/test_*.m)

DISTFILES = ChangeLog Makefile.in build_sparse_tests.sh fntests.m $(SOURCES)

OCTAVE_BINARY = ../src/octave

OCTAVE_SCRIPT_PATH = .//:$(TOPDIR)/src//:$(srcdir):$(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

all: check
.PHONY: all

check: test_sparse.m
	../run-octave --no-site-file --silent --no-history $(srcdir)/fntests.m $(srcdir)
.PHONY: check

test_sparse.m: build_sparse_tests.sh
	$(srcdir)/build_sparse_tests.sh

install install-strip: all
.PHONY: install install-strip

uninstall:
.PHONY: uninstall

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

clean:
	rm -f fntests.log
.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
.PHONY: dist