# $Header: /diskb/home/alexis/dev/fad/doc/RCS/Makefile,v 1.9 1999/01/07 12:46:35 alexis Exp $

SUPPORT_DIR			= ../support
include				../Makefile.defs

COMPONENTS			= examples

FILES				= COPYING INSTALL README.1ST TODO CREDITS

compile:			$(FILES)
				for DIR in $(COMPONENTS); do \
					( cd $$DIR && $(MAKE) $@ ) || exit 1; \
				done

clean:
				for DIR in $(COMPONENTS); do \
					( cd $$DIR && $(MAKE) $@ ) || exit 1; \
				done

install:			compile
				$(INSTALL_CMD) -o root -g root -m 555 -d \
					$(PRGDOCDIR)
				$(INSTALL_CMD) -o root -g root -m 444 $(FILES) \
					$(PRGDOCDIR)
				for DIR in $(COMPONENTS); do \
					( cd $$DIR && $(MAKE) $@ ) || exit 1; \
				done

uninstall:
				for DIR in $(COMPONENTS); do \
					( cd $$DIR && $(MAKE) $@ ) || exit 1; \
				done
				-cd $(PRGDOCDIR) && rm -f $(FILES)
				-cd / && rmdir $(PRGDOCDIR)
