[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automake 1.6: make distcleancheck too finicky

From: Akim Demaille
Subject: Re: automake 1.6: make distcleancheck too finicky
Date: 13 Mar 2002 09:48:53 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

| In automake 1.6, make distcleancheck actually fails if there are files
| left after distclean:
|     ERROR: files left after distclean:
|     ./doc/info.1
|     ./doc/install-info.1
|     ./doc/makeinfo.1
|     ./doc/texindex.1
|     ./info/funs.h
|     ./info/doc.c
|     ./info/key.c
|     make[1]: *** [distcleancheck] Error 1
| This seems too restrictive to me.  I *want* to include those files in
| the distribution, even though they are generated.  That way, if
| something goes wrong with the generation, the installer can still get
| their job done without reproducing the entire development environment, etc.
| And the man pages might be nice to see before installing.
| (Seems like every distribution that uses help2man would have this
| problems, unless they don't distribute the man pages.)

So you do have a problem with your Makefiles somewhere.  See Autoconf
for instance: we do ship the .1 files, but we don't face the trouble
you have.


## Process this file with automake to create Makefile.in -*-Makefile-*-

## Makefile for Autoconf.
## Copyright 2001 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
## 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., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.

dist_man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \
autoscan.1 autom4te.1 config.guess.1 config.sub.1

man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \
autoscan.x autom4te.x config.guess.x config.sub.x

EXTRA_DIST = $(man_aux) common.x

# Depend on configure.ac to get version number changes.
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
binsrcdir = $(top_srcdir)/bin
autoconf.1:   $(common_dep) $(srcdir)/autoconf.x   $(binsrcdir)/autoconf.in
autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(binsrcdir)/autoheader.in
autom4te.1:   $(common_dep) $(srcdir)/autom4te.x   $(binsrcdir)/autom4te.in
autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(binsrcdir)/autoreconf.in
autoscan.1:   $(common_dep) $(srcdir)/autoscan.x   $(binsrcdir)/autoscan.in
autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(binsrcdir)/autoupdate.in
ifnames.1:    $(common_dep) $(srcdir)/ifnames.x    $(binsrcdir)/ifnames.in

# Independent from this package.
config.guess.1: $(srcdir)/config.guess.x  $(top_srcdir)/config/config.guess
config.sub.1:   $(srcdir)/config.sub.x    $(top_srcdir)/config/config.sub

SUFFIXES = .x .1

        echo "Updating man page $@"
address@hidden"; \
        export PATH; \
        $(HELP2MAN) \
            --include=$(srcdir)/$*.x \
            --include=$(srcdir)/common.x \
            --output=$@ $*

# --------------------------------------------------

Karl, I'm not sure you have a real problem with an Automake feature
here.  Do not disable this, it is precious.  Just teaching your
Makefiles that what you ship is *source*, so when you update, update
in the *src* tree, not the build tree.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]