#sccs	"@(#)sgs:Makefile	1.5"

#	Makefile 9/14/84

include $(MAKEINC)/Makepre.h

UNITS = \
	UNITadb=adb \
	UNITheaders=sgshead \
	UNITmake=make \
	UNITmas=mas \
	UNITmcc=mcc \
	UNITmcpp=mcpp \
	UNITmld=mld \
	UNITheaders=sgshead \
	UNITsdb=sdb

POPDIRS = \
	mas \
	mcc \
	mld

SUBDIRS=\
make\
mcpp\
adb\
mas\
mcc\
mld\
sdb

all:   comall

install:  cominstall

clean:    comclean

clobber:  comclobber

includes: comincludes

populate: $(SUBDIRS) headers
	for D in $(SUBDIRS) headers; \
	do (cd $$D; echo "** $$D **:"; getunit); \
	done
	for D in $(POPDIRS); \
	do (cd $$D; echo "** $$D **:"; $(MAKE) populate); \
	done

$(SUBDIRS) headers:
	@$(UNITS) ;echo "Making Directory for $@"; mkdir $@; echo $$UNIT$@ > $@/.unit

include $(MAKEINC)/Makepost.h
