# File: ftests/Makefile
include Makefile.target
INCLUDE = -I../testlib -I. -I..
FFLAGS = $(CFLAGS) -ffixed-line-length-132
testlibdir=../testlib
TESTLIB= $(testlibdir)/libtestlib.a
DOLOOPS= $(testlibdir)/do_loops.o
ifneq ($(F77),)
include Makefile.recipies
install: default
@echo "Fortran tests (DATADIR) being installed in: \"$(DATADIR)\"";
-mkdir -p $(DATADIR)/ftests
-chmod go+rx $(DATADIR)
-chmod go+rx $(DATADIR)/ftests
-find . -perm -100 -type f -exec cp {} $(DATADIR)/ftests \;
-chmod go+rx $(DATADIR)/ftests/*
-find . -name "*.[Ffh]" -type f -exec cp {} $(DATADIR)/ftests \;
-cp Makefile.target $(DATADIR)/ftests/Makefile
-cat Makefile.recipies >> $(DATADIR)/ftests/Makefile
else
all:
@echo "Install Fortran compiler to build and run Fortran tests"
install:
@echo "No Fortran tests to install."
endif