# These variables are configurable.
#---------------------------------------#
DIRS := lib server client util
#---------------------------------------#

.PHONY: all depend clean dependall cleanall

include make/UtilMakefile

# Productions:
#	all: Make everything
#	dependall: Make depend in all the directories.
#	cleanall: Make clean in all the directories.
#	archall: (If the ARCH env var is set).  mkdir $ARCH in all subdirs.

all: dirs

depend:

clean:

dependall:
	$(MAKE) COMMAND=depend recursive	

cleanall:
	$(MAKE) COMMAND=clean recursive

installall:
	$(MAKE) COMMAND=install recursive

install:

ifdef ARCH
eviscerate:
	find . -name $(ARCH) -a -type d -exec rm -rf \{\} \;

archall:
	$(MAKE) COMMAND=arch recursive
endif
