xref: /netbsd-src/external/gpl2/diffutils/dist/man/Makefile.am (revision 75f6d617e282811cb173c2ccfbf5df0dd71f7045)
1*75f6d617Schristos# Automakefile for GNU diffutils man pages
2*75f6d617Schristos
3*75f6d617Schristos# Copyright (C) 2002 Free Software Foundation, Inc.
4*75f6d617Schristos
5*75f6d617Schristos## This program is free software; you can redistribute it and/or modify
6*75f6d617Schristos## it under the terms of the GNU General Public License as published by
7*75f6d617Schristos## the Free Software Foundation; either version 2, or (at your option)
8*75f6d617Schristos## any later version.
9*75f6d617Schristos
10*75f6d617Schristos## This program is distributed in the hope that it will be useful,
11*75f6d617Schristos## but WITHOUT ANY WARRANTY; without even the implied warranty of
12*75f6d617Schristos## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*75f6d617Schristos## GNU General Public License for more details.
14*75f6d617Schristos
15*75f6d617Schristos## You should have received a copy of the GNU General Public License
16*75f6d617Schristos## along with this program; if not, write to the Free Software
17*75f6d617Schristos## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18*75f6d617Schristos## 02111-1307, USA.
19*75f6d617Schristos
20*75f6d617Schristosdist_man_MANS =	cmp.1 diff.1 diff3.1 sdiff.1
21*75f6d617SchristosMAINTAINERCLEANFILES = $(dist_man_MANS)
22*75f6d617Schristos
23*75f6d617SchristosS = $(top_srcdir)/src
24*75f6d617Schristoscmp.1: $S/cmp.c
25*75f6d617Schristosdiff.1: $S/diff.c
26*75f6d617Schristosdiff3.1: $S/diff3.c
27*75f6d617Schristossdiff.1: $S/sdiff.c
28*75f6d617Schristos
29*75f6d617Schristos# Depend on configure.ac to get version number changes.
30*75f6d617Schristos$(dist_man_MANS): $(top_srcdir)/configure.ac
31*75f6d617Schristos	base=`expr $@ : '\(.*\).1'` && \
32*75f6d617Schristos	  (echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/; q' $S/$$base.c) | \
33*75f6d617Schristos	  $(HELP2MAN) -i - -S '$(PACKAGE) $(VERSION)' ../src/$$base | \
34*75f6d617Schristos	  sed 's/^\.B info .*/.B info diff/' >$@
35