~ubuntu-branches/ubuntu/maverick/autoconf/maverick

« back to all changes in this revision

Viewing changes to man/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Ben Pfaff
  • Date: 2007-01-17 19:57:13 UTC
  • mfrom: (3.1.7 feisty)
  • Revision ID: james.westby@ubuntu.com-20070117195713-n2q7e2pbpu4ezbx7
Tags: 2.61-4
debian/control: Require m4 version 1.4.8 or later.  Thanks to Jim
Paris <jim@jtan.com> for reporting this bug.  Closes: #407385.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## Process this file with automake to create Makefile.in -*-Makefile-*-
 
1
# Make Autoconf man pages.
2
2
 
3
 
## Makefile for Autoconf.
4
 
## Copyright 2001 Free Software Foundation, Inc.
 
3
## Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
5
4
 
6
5
## This program is free software; you can redistribute it and/or modify
7
6
## it under the terms of the GNU General Public License as published by
15
14
 
16
15
## You should have received a copy of the GNU General Public License
17
16
## along with this program; if not, write to the Free Software
18
 
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19
 
## 02111-1307, USA.
20
 
 
21
 
dist_man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
22
 
autoscan.1 autom4te.1 config.guess.1 config.sub.1
23
 
 
24
 
man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
25
 
autoscan.x autom4te.x config.guess.x config.sub.x
26
 
 
27
 
EXTRA_DIST = $(man_aux) common.x
 
17
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
## 02110-1301, USA.
 
19
 
 
20
dist_man_MANS = \
 
21
        $(srcdir)/autoconf.1 \
 
22
        $(srcdir)/autoheader.1 \
 
23
        $(srcdir)/autom4te.1 \
 
24
        $(srcdir)/autoreconf.1 \
 
25
        $(srcdir)/autoscan.1 \
 
26
        $(srcdir)/autoupdate.1 \
 
27
        $(srcdir)/ifnames.1 \
 
28
        $(srcdir)/config.guess.1 \
 
29
        $(srcdir)/config.sub.1
 
30
 
 
31
EXTRA_DIST = $(dist_man_MANS:.1=.x) common.x
28
32
MAINTAINERCLEANFILES = $(dist_man_MANS)
29
33
 
30
34
# Depend on configure.ac to get version number changes.
31
35
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
32
36
binsrcdir = $(top_srcdir)/bin
33
 
autoconf.1:   $(common_dep) $(srcdir)/autoconf.x   $(binsrcdir)/autoconf.in
34
 
autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(binsrcdir)/autoheader.in
35
 
autom4te.1:   $(common_dep) $(srcdir)/autom4te.x   $(binsrcdir)/autom4te.in
36
 
autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(binsrcdir)/autoreconf.in
37
 
autoscan.1:   $(common_dep) $(srcdir)/autoscan.x   $(binsrcdir)/autoscan.in
38
 
autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(binsrcdir)/autoupdate.in
39
 
ifnames.1:    $(common_dep) $(srcdir)/ifnames.x    $(binsrcdir)/ifnames.in
 
37
$(srcdir)/autoconf.1:   $(common_dep) $(binsrcdir)/autoconf.as
 
38
$(srcdir)/autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
 
39
$(srcdir)/autom4te.1:   $(common_dep) $(binsrcdir)/autom4te.in
 
40
$(srcdir)/autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
 
41
$(srcdir)/autoscan.1:   $(common_dep) $(binsrcdir)/autoscan.in
 
42
$(srcdir)/autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
 
43
$(srcdir)/ifnames.1:    $(common_dep) $(binsrcdir)/ifnames.in
40
44
 
41
45
# Independent from this package.
42
 
config.guess.1: $(srcdir)/config.guess.x  $(top_srcdir)/config/config.guess
43
 
config.sub.1:   $(srcdir)/config.sub.x    $(top_srcdir)/config/config.sub
 
46
$(srcdir)/config.guess.1: $(top_srcdir)/build-aux/config.guess
 
47
$(srcdir)/config.sub.1:   $(top_srcdir)/build-aux/config.sub
 
48
 
 
49
remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
 
50
 
 
51
MOSTLYCLEANFILES = $(srcdir)/*.t
44
52
 
45
53
SUFFIXES = .x .1
46
54
 
47
55
.x.1:
 
56
        @program=`expr "/$*" : '.*/\(.*\)'` && \
 
57
        case $$program in \
 
58
        config.*) ;; \
 
59
        *) \
 
60
          for dir in $(top_builddir)/bin $(top_builddir)/tests; do \
 
61
            echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \
 
62
            (cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
 
63
          done;; \
 
64
        esac
48
65
        echo "Updating man page $@"
49
 
        PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
 
66
        PATH="$(top_builddir)/tests$(PATH_SEPARATOR)$(top_srcdir)/build-aux$(PATH_SEPARATOR)$$PATH"; \
50
67
        export PATH; \
51
68
        $(HELP2MAN) \
52
 
            --include=$(srcdir)/$*.x \
 
69
            --include=$*.x \
53
70
            --include=$(srcdir)/common.x \
54
 
            --output=$@ $*
 
71
            --output=$@.t `echo '$*' | sed 's,.*/,,'`
 
72
        if sed $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
 
73
           sed $(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \
 
74
                touch $@; \
 
75
        else \
 
76
                mv $@.t $@; \
 
77
        fi
 
78
        rm -f $@*.t