#
#  Make file: Makefile
#
#  Program:   all project Riemann programs except xdisp
#
#  Contents:  This is the make file all of the project Riemann programs except
#             xdisp.  It calls the individual programs' make files.  The 
#	      individual programs' make files are set up so that they can
#	      also be called individually; they don't have to be called from
#	      this master make file.
#

SHELL=sh
DIRS= mathbase userinter output symbolic numerical curvature
PROGDIRS= symbolic numerical curvature
CC= gcc

all: 
	for i in $(PROGDIRS); do ( cd $$i; make $(MFLAGS) ); done

install:
	for i in $(PROGDIRS); do ( cd $$i; make $(MFLAGS) install ); done

symgeod:
	( cd symbolic; make $(MFLAGS) )

numgeod:
	( cd numerical; make $(MFLAGS) )

impcurv:
	( cd curvature; make $(MFLAGS) impcurv )

parcurv:
	( cd curvature; make $(MFLAGS) parcurv )

lint:
	for i in $(DIRS); do ( cd $$i; make $(MFLAGS) lint ); done

tags:	
	for i in $(DIRS); do ( cd $$i; make $(MFLAGS) tags ); done

clean: 
	for i in $(DIRS); do ( cd $$i; make $(MFLAGS) clean ); done
	
maketd:
	for i in $(DIRS); do ( cd $$i; make $(MFLAGS) maketd ); done

