#
# $Id: Makefile,v 1.7 1997/02/24 05:58:12 morgan Exp $
#
# add new applications to this list. the tokens are directory names that
# contain the apps.

APPDIRS = login su passwd

# -----------------------------------------------------------

dummy:

	@echo	"*** This is not a top level Makefile!"

all:
	for i in $(APPDIRS) ; do \
		if [ -d $$i ]; then { \
			$(MAKE) -C $$i all ; \
			if [ $$? -ne 0 ]; then exit 1 ; fi ; \
		} elif [ -f ./.$$i ]; then \
			cat ./.$$i ; \
		fi ; \
	done

install: all
	for i in $(APPDIRS) ; do \
		if [ -d $$i ]; then $(MAKE) -C $$i install ; fi ; \
	done


remove:
	for i in $(APPDIRS) ; do \
		if [ -d $$i ]; then $(MAKE) -C $$i remove ; fi ; \
	done

clean:
	rm -f core *~
	for i in $(APPDIRS) ; do \
		if [ -d $$i ]; then $(MAKE) -C $$i clean; fi ; \
	done

extraclean: clean
	for i in $(APPDIRS) ; do \
		if [ -d $$i ]; then $(MAKE) -C $$i extraclean; fi ; \
	done
