SHELL=/bin/sh

.SUFFIXES:

.PHONY:
.PHONY: clean-generic mostlyclean-generic \
	clean distclean mostlyclean maintainer-clean \
	install

src_dir     = src
testgtk_dir = testgtk
doc_dir     = docs
example_dir = examples
projects_dir = projects

all:
	$(MAKE) -C $(src_dir)
	$(MAKE) -C $(testgtk_dir)

install: 
	$(MAKE) -C $(src_dir) install
	$(MAKE) -C $(projects_dir) install
	$(MAKE) -C $(testgtk_dir) install
	$(MAKE) -C $(doc_dir) install
	$(MAKE) -C $(example_dir) install

clean-generic:
	-${RM} core
	-${RM} .\#*

mostlyclean-generic: clean-generic
	-${RM} Makefile

clean: clean-generic
	-$(MAKE) -C $(src_dir) clean
	-$(MAKE) -C $(testgtk_dir) clean
	-$(MAKE) -C $(example_dir) clean

distclean: mostlyclean-generic
	-${RM} config.cache config.log config.status
	-$(MAKE) -C $(src_dir) distclean
	-$(MAKE) -C $(testgtk_dir) distclean

mostlyclean: mostlyclean-generic
	-$(MAKE) -C $(src_dir) mostlyclean
	-$(MAKE) -C $(testgtk_dir) mostlyclean

maintainer-clean: mostlyclean-generic
	-${RM} config.cache config.log config.status
	-${RM} configure
	-$(MAKE) -C $(src_dir) maintainer-clean
	-$(MAKE) -C $(testgtk_dir) maintainer-clean
