#
# Copyright (c) 1991 University College London
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the Department of Computer Science, University College London.
# 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'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#

# Makefile for OSI Management Information Services
#
# By Kevin McCarthy, November 1993

IMIBSRC  =	imibtool/vtt.gdmo.src

LIBDIR	 =	snmp proxy
GLIBDIR  =	proxy
PROGDIR  =	$(IMIBSRC) pma

all:		lib prog

lib:;		@for i in $(LIBDIR); \
		    do (echo "cd $$i; ./make lib"; \
			      cd $$i; ./make lib); \
		    done

glib:;		@for i in $(GLIBDIR); \
		    do (echo "cd $$i; ./make glib"; \
			      cd $$i; ./make glib); \
		    done

prog:;		@for i in $(PROGDIR); \
		    do (echo "cd $$i; ./make prog"; \
			      cd $$i; ./make prog); \
		    done

gprog:		prog

install:	install-etc install-h install-lib install-prog

clean:;		
		@for i in $(LIBDIR) $(PROGDIR) ; \
		    do (echo "cd $$i; ./make clean"; \
			      cd $$i; ./make clean); \
		    done

install-etc:;	@if [ ! $(ETC) = $(TOP)/etc ]; \
		then \
		    (echo "cd ./etc; ./make install"; \
			   cd ./etc; ./make install); \
		else \
		    echo "$(TOP)/etc in the OSIMIS tree, not installing"; \
		fi

install-h:;	@for i in $(LIBDIR) ; \
		    do (echo "cd $$i; ./make install-h"; \
			      cd $$i; ./make install-h); \
		    done

install-gh:;	@for i in $(GLIBDIR) ; \
		    do (echo "cd $$i; ./make install-gh"; \
			      cd $$i; ./make install-gh); \
		    done


install-lib:;	@for i in $(LIBDIR); \
		    do (echo "cd $$i; ./make install-lib"; \
			      cd $$i; ./make install-lib); \
		    done

install-glib:;	@for i in $(GLIBDIR); \
		    do (echo "cd $$i; ./make install-glib"; \
			      cd $$i; ./make install-glib); \
		    done

install-prog:;	@for i in $(PROGDIR); \
		    do (echo "cd $$i; ./make install-prog"; \
			      cd $$i; ./make install-prog); \
		    done

install-gprog:	install-prog

install-man:;	@for i in $(PROGDIR); \
		    do (echo "cd $$i; ./make install-man"; \
			      cd $$i; ./make install-man); \
		    done
