#
# 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 George Pavlou, June 1991

LIBDIR	 =	$(RMIB) .
PROGDIR	 =	general $(OIM) $(BROWSER)
GPROGDIR =	general $(BROWSER)


all:		lib prog

lib:;		@for i in $(LIBDIR); \
		    do (if (test $$i = ".") then \
			    break; \
			fi; \
			echo "cd $$i; ./make lib"; \
			      cd $$i; ./make lib); \
		    done

glib:		lib

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

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

install:	install-h install-lib install-prog install-man


clean:;		@for i in $(LIBDIR) $(PROGDIR) general2; \
		    do (if (test $$i = ".") then \
			    break; \
			fi; \
			echo "cd $$i; ./make clean"; \
			      cd $$i; ./make clean); \
		    done

install-h:;	@for i in $(LIBDIR); \
		    do (if (test $$i = ".") then \
			    break; \
			fi; \
		        echo "cd $$i; ./make install-h"; \
			      cd $$i; ./make install-h); \
		    done

install-gh:	install-h

install-lib:;	@for i in $(LIBDIR); \
		    do (if (test $$i = ".") then \
			    break; \
			fi; \
		        echo "cd $$i; ./make install-lib"; \
			      cd $$i; ./make install-lib); \
		    done

install-glib:	install-lib

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

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

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

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

