#	Copyright (c) 1989 Carrick Sean Casey. All rights reserved.

#	"make"         - compile the sources
#	"make install" - compile sources, install binaries and man pages
#	"make clean"   - delete everything that "make" generates
#	"make depend"  - regenerate dependency lists

#	Directories to do a make in.
DIRS 		= src util
CONFDIRS	= etc 

#	Default

all:
	@for dir in ${DIRS}; do \
		(echo Making in $${dir}; \
		 cd $${dir}; ${MAKE} all); done

install:
	@for dir in ${DIRS}; do \
		(echo Making install in $${dir}; \
		cd $${dir}; ${MAKE} install); done
	@echo "If this is your first install, now do 'make init' to install default configuration files"

init:
	@for dir in ${CONFDIRS}; do \
		(echo Making install in $${dir}; \
		cd $${dir}; ${MAKE} install); done

depend:
	@for dir in ${DIRS}; do \
		(echo Making depend in $${dir}; \
		cd $${dir}; ${MAKE} depend); done

lint:
	@for dir in ${DIRS}; do \
		(echo Making lint in $${dir}; \
		cd $${dir}; ${MAKE} lint); done

clean:
	@for dir in ${DIRS}; do \
		(echo Making clean in $${dir}; \
		cd $${dir}; make -f Makefile clean); done
