1# Make RCS man pages.
2
3#	Id: Makefile.in,v 5.6 1995/06/16 06:19:24 eggert Exp 
4
5# Copyright 1995 Paul Eggert
6#   Distributed under license by the Free Software Foundation, Inc.
7#
8# This file is part of RCS.
9#
10# RCS is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2, or (at your option)
13# any later version.
14#
15# RCS is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with RCS; see the file COPYING.
22# If not, write to the Free Software Foundation,
23# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24#
25# Report problems and direct all questions to:
26#
27#    rcs-bugs@cs.purdue.edu
28
29srcdir = @srcdir@
30VPATH = @srcdir@
31
32INSTALL = @INSTALL@
33INSTALL_DATA = @INSTALL_DATA@
34PIC = @PIC@
35
36prefix = @prefix@
37man1dir = $(prefix)/man/man1
38man5dir = $(prefix)/man/man5
39man1ext = .1
40man5ext = .5
41
42SHELL = /bin/sh
43
44all default :: rcsfile.5
45
46rcsfile.5 : rcsfile.5in
47	$(PIC) $(PICFLAGS) $(srcdir)/$@in >$@
48
49check dvi info TAGS ::
50
51installdirs :: ../mkinstalldirs
52	-$(srcdir)/../mkinstalldirs $(man1dir) $(man5dir)
53
54man1pages = ci co ident merge rcs rcsclean rcsdiff rcsintro rcsmerge rlog
55
56install :: installdirs
57	-for m in $(man1pages); do \
58		$(INSTALL_DATA) $(srcdir)/$$m.1 $(man1dir)/$$m$(man1ext); \
59	done
60	-{ test -f rcsfile.5 || cd $(srcdir); } && \
61	$(INSTALL_DATA) rcsfile.5 $(man5dir)/rcsfile$(man5ext)
62
63uninstall ::
64	for m in $(man1pages); do \
65		rm -f $(man1dir)/$$m$(man1ext); \
66	done
67	rm -f $(man5dir)/rcsfile$(man5ext)
68
69clean mostlyclean ::
70	rm -f core core.* *.core
71
72distclean :: clean
73	rm -f Makefile
74
75maintainer-clean :: distclean
76	@echo "This command is intended for maintainers to use;"
77	@echo "it deletes files that may require special tools to rebuild."
78	rm -f rcsfile.5
79
80installcheck installdebug ::
81