# $Id$
# Skeleton for RCS Makefile
# Copyright (c) 1992, The Regents of the University of Colorado

# The followin CPP symbols should be defined in order to use this skeleton:
# SUBDIR	Subdirectories having files under RCS control
# RCS		Local files under RCS control

SHELL	= /bin/sh

# Make the default co quiet.
COFLAGS = -q

all:	$(RCS)
#ifdef SUBDIR
	@-if test '$(SUBDIR)' != ''; then \
		for i in $(SUBDIR); do echo; echo RCSMaking $$i; \
		(cd $$i; make -f rcsmkfile all COFLAGS=$(COFLAGS)); done; \
	fi

rcsclean:
	@-if test '$(SUBDIR)' != ''; then \
		for i in $(SUBDIR); do echo; echo RCScleaning $$i; \
		(cd $$i; make -f rcsmkfile rcsclean COFLAGS=$(COFLAGS)); done; \
	fi
	-rcsclean $(COFLAGS) $(RCS) Makefile.cpp rcsmkfile.cpp
	rm -rf core a.out ERRS Makefile rcsmkfile

save:
	-mkdir RCS
	-ci -k -t/dev/null -nOriginal -u -q Makefile.cpp rcsmkfile.cpp $(RCS)
	-rcs -bOriginal.1 -q Makefile.cpp rcsmkfile.cpp $(RCS)
	-ci -fOriginal.1 -m/dev/null -q -u Makefile.cpp rcsmkfile.cpp $(RCS)
	@-if test '$(SUBDIR)' != ''; then \
		for i in $(SUBDIR); do echo; echo Saving $$i; \
		(cd $$i; make -f rcsmkfile save); done; \
	fi

.PRECIOUS: $(RCS)
