###############################################################################
#   Instructions to Make, for compilation of ISODE documentation tree
###############################################################################

###############################################################################
#
# $Header: /f/osi/doc/RCS/Makefile,v 7.8 91/02/22 09:17:38 mrose Interim $
#
#
# $Log:	Makefile,v $
# Revision 7.8  91/02/22  09:17:38  mrose
# Interim 6.8
# 
# Revision 7.7  90/11/04  20:15:58  mrose
# memos
# 
# Revision 7.6  90/10/15  18:20:26  mrose
# internals1
# 
# Revision 7.5  90/07/09  14:33:25  mrose
# sync
# 
# Revision 7.4  90/05/08  08:52:09  mrose
# report-2
# 
# Revision 7.3  90/03/05  23:02:41  mrose
# snmp
# 
# Revision 7.2  89/12/06  17:29:24  mrose
# isode6
# 
# Revision 7.1  89/11/24  14:50:57  mrose
# practical
# 
# Revision 7.0  89/11/24  14:43:20  mrose
# Release 6.0
# 
###############################################################################

###############################################################################
#
#				 NOTICE
#
#    Acquisition, use, and distribution of this module and related
#    materials are subject to the restrictions of a license agreement.
#    Consult the Preface in the User's Manual for the full terms of
#    this agreement.
#
###############################################################################


DIRS	=	cn-isdn comments cookbook ds duug ftam ifip88-quipu interim \
		internals1 islands iso-migrate isode1 isode2 isode3 isode4 \
		isode5 isode6 issues manual map-migrate memos monterey ncf \
		nordunet osi-posix osi-update practical-osi1 practical-osi2 \
		quipu ps reality snmp trek tsap tsaptalk ufn whitepages


##################################################################
# Here it is...
##################################################################

all:;		@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) all"; \
			      cd $$i; make $(MFLAGS) all); \
		    done

inst-all:;	@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) inst-all"; \
			      cd $$i; make $(MFLAGS) inst-all); \
		    done

install:;	@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) install"; \
			      cd $$i; make $(MFLAGS) install); \
		    done

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

clean:;		rm -f _* *.tmp *.imp *.ps
		@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) clean"; \
			      cd $$i; make $(MFLAGS) clean); \
		    done

grind:;		itroff -man $(TOPDIR)isode-gen.8
		@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) grind"; \
			      cd $$i; make $(MFLAGS) grind); \
		    done

imp:		true
		@make isode-gen.imp
		@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) imp"; \
			      cd $$i; make $(MFLAGS) imp); \
		    done

ps:		true
		@make isode-gen.ps
		@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) ps"; \
			      cd $$i; make $(MFLAGS) ps); \
		    done

preview:;	@for i in $(DIRS); \
		    do (echo "cd $$i; make $(MFLAGS) preview"; \
			      cd $$i; make $(MFLAGS) preview); \
		    done

true:;


isode-gen.imp:	$(TOPDIR)isode-gen.8
		itroff -t -man $(TOPDIR)isode-gen.8 | catimp -i isode-gen.tmp
		mv isode-gen.tmp isode-gen.imp

isode-gen.ps:	$(TOPDIR)isode-gen.8
		dotroff -t -man $(TOPDIR)isode-gen.8 > isode-gen.tmp
		mv isode-gen.tmp isode-gen.ps
