#
# Makefile for IDL source code To be used on UNIX!
#

DIRS = science \
	tplot \
	misc \
	key_param \
	obsolete

# ********************************************************************
#  Standard targets

TARGETS = all install clean 

# --------------------------------------------------------------------
#  Recursively descend into subdirectories of the current one
#  and run make in each one.  

$(TARGETS) :: FORCED
	@- DIRS="$(DIRS)" ; \
	for i in $$DIRS ; do \
	    if [ -d $$i ] ; then \
		echo --------------------------------------------- ; \
		echo '###' Starting make $@ in $$i ; \
		(cd $$i ; $(MAKE) $@ ; ); \
		echo '###' Finished make $@ in $$i ; \
		echo --------------------------------------------- ; \
	    fi \
	done ; \

FORCED:
