#
# Top level makefile for Utah Raster Toolkit
#

# Subdirectories that get made
#ifnadd	NO_TOOLS	OPTDIRS		tools cnv get
#emit OPTDIRS
OPTDIRS = tex

DIRS = lib $(OPTDIRS)
ALLDIRS = include $(DIRS) man

# default action just makes subdirs

all: default

# clean deletes all but source, pristine (below) deletes installed stuff, too
default clean: doit
	@for d in $(DIRS) ; do \
		( cd $$d ; echo make $@ on $$d ; make $(MFLAGS) $@ ) ; \
	done

# install puts library, binaries and documentation into global location
# (see individual makefiles for configuration variables)

#ifnadd NO_MAKE_MAKEFILE	MAKE_TARGET	makefile
#emit MAKE_TARGET
MAKE_TARGET =

install $(MAKE_TARGET) pristine depend:: doit
	@for d in $(ALLDIRS) ; do \
		( cd $$d ; echo make $@ on $$d ; make $(MFLAGS) $@ ) ; \
	done


doit:
