#
# Makefile for the common code library project. 
# This probably requires GNU make.
#

SUBDIRS=src tests examples @OPTDOC@

all: all-recursive

all-recursive:
	for s in $(SUBDIRS) ; do (cd $$s && $(MAKE)) || exit 1 ; done

clean: clean-recursive

clean-recursive:
	for s in $(SUBDIRS) ; do (cd $$s && $(MAKE) clean) ; done

distclean: distclean-recursive
	rm -f Makefile config.cache config.log

distclean-recursive:
	for s in $(SUBDIRS) ; do (cd $$s && $(MAKE) distclean) ; done

.PHONY: clean clean-recursive distclean



syntax highlighted by Code2HTML, v. 0.9.1