# Makefile for GNU CVS example files.
# Do not use this makefile directly, but only from `../Makefile'.
# Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# $CVSid: @(#)Makefile.in 1.4 94/10/22 $

SHELL = /bin/sh

srcdir     = @srcdir@
top_srcdir = @top_srcdir@
VPATH      = @srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@

# Where to install the executables.
bindir = $(exec_prefix)/bin

# Where to put the system-wide .cvsrc file
libdir = $(prefix)/lib

# Where to put the manual pages.
mandir = $(prefix)/man

# Use cp if you don't have install.
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

EXAMPLE_FILES = commitinfo editinfo loginfo modules rcsinfo

DISTFILES = Makefile.in commitinfo loginfo modules rcsinfo

all: Makefile
.PHONY: all

install: all $(libdir)/cvs/examples
	for f in $(EXAMPLE_FILES) ; do\
		$(INSTALL_DATA) $(srcdir)/$$f $(libdir)/cvs/examples/$$f; \
	done
.PHONY: install

$(libdir)/cvs/examples:
	../mkinstalldirs $(libdir)/cvs/examples

tags:
.PHONY: tags

TAGS:
.PHONY: TAGS

ls:
	@echo $(DISTFILES)
.PHONY: ls

clean:
	/bin/rm -f *.o core
.PHONY: clean

distclean: clean
	rm -f Makefile
.PHONY: distclean

realclean: distclean
.PHONY: realclean

dist:
	ln $(DISTFILES) ../`cat ../.fname`/examples
.PHONY: dist

Makefile: Makefile.in
	cd ..; $(SHELL) config.status
