#
# PCN System
# Authors:     Steve Tuecke and Ian Foster
#              Argonne National Laboratory
#
# Please see the DISCLAIMER file in the top level directory of the
# distribution regarding the provisions under which this software
# is distributed.
#
# support/Makefile
#
# This Makefile gets dropped into Build/<config>/.
# It just does recursive makes down the src and config directories.

include Makefile.hdr

SRC_DIRS = \
	src \
	contrib

default:	build

force:

build:	force
	@for i in $(SRC_DIRS) ; \
		do (cd $$i; echo "Building: $$i"; $(G_MAKE) build) ; \
	done

install:	force
	@for i in $(SRC_DIRS) ; \
		do (cd $$i; echo "Installing: $$i"; $(G_MAKE) install) ; \
	done

clean:	force
	@for i in $(SRC_DIRS) ; \
		do (cd $$i; echo "Cleaning: $$i"; $(G_MAKE) clean) ; \
	done
	find . -name "*~" -print -exec rm {} \;

find_clean:	force
	find . -name "*~" -print -exec rm {} \;

