#SUBDIRS = $(shell ls -l | awk '/^d/ { print $$9 }')
SUBDIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d -printf "%f\n")

all install uninstall clean disclean:
	@list='$(SUBDIRS)'; for subdir in $$list; do \
	   echo "=============== making $@ in $$subdir ================="; \
	   (cd $$subdir && make $@) \
	done

tree:
	tree > tree.txt

arch:	disclean
	@rm -f *.tgz
	tar -czvf Kexamples.tgz * > /dev/null
