#------------------------------------------------------------------------------
# Copyright (c) 1992 Regents of the University of Michigan.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of Michigan at Ann Arbor. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
# Internet Rover discovery code
#
#------------------------------------------------------------------------------

DIRS	= StatusFileManager Pollers Monitors

default:
	( cd ../.. ; make Discovery )

all:
	@for i in $(DIRS); \
		do (echo "cd $$i; $(MAKE) all"; \
			cd $$i; $(MAKE) ACFLAGS="$(ACFLAGS)" \
			TERMLIB="$(TERMLIB)" CURSESLIB="$(CURSESLIB)" \
			BSDLIB="$(BSDLIB)" ALDFLAGS="$(ALDFLAGS)" \
			LIBDIR="$(LIBDIR)" all); \
		done

clean:
	@for i in $(DIRS); \
		do (echo "cd $$i; $(MAKE) clean"; \
			cd $$i; $(MAKE) clean); \
		done

depend:
	@for i in $(DIRS); \
		do (echo "cd $$i; $(MAKE) depend"; \
			cd $$i; $(MAKE) depend); \
		done

install:
	@for i in $(DIRS); \
		do (echo "cd $$i; $(MAKE) install"; \
			cd $$i; $(MAKE) BINDIR="$(BINDIR)" install); \
		done

lint:
	@for i in $(DIRS); \
		do (echo "cd $$i; $(MAKE) lint"; \
			cd $$i; $(MAKE) lint); \
		done
