variables when no-dist is set.
(generate_makefile): Likewise.
* tests/nodist3.test: Ensure that DIST_SOURCES is not created,
and that dist target does not exist.
Reported by Tom Fitzsimmons.
+2004-01-02 Tom Tromey <tromey@redhat.com>
+
+ * automake.in (handle_source_transform): Don't generate dist
+ variables when no-dist is set.
+ (generate_makefile): Likewise.
+ * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
+ and that dist target does not exist.
+ Reported by Tom Fitzsimmons.
+
2004-01-02 Alexandre Duret-Lutz <adl@gnu.org>
* tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
unless $prefix =~ /EXTRA_/;
push @sources, "\$($varname)";
- if ($prefix !~ /^nodist_/)
+ if (! option 'no-dist' && $prefix !~ /^nodist_/)
{
# If the VAR wasn't defined conditionally, we add
# it to DIST_SOURCES as is. Otherwise we create a
# Variables used by distdir.am and tags.am.
define_pretty_variable ('SOURCES', TRUE, INTERNAL, @sources);
- define_pretty_variable ('DIST_SOURCES', TRUE, INTERNAL, @dist_sources);
+ if (! option 'no-dist')
+ {
+ define_pretty_variable ('DIST_SOURCES', TRUE, INTERNAL, @dist_sources);
+ }
handle_multilib;
handle_texinfo;
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
-grep '^dist:' Makefile.in
+grep '^dist:' Makefile.in && exit 1
+grep '^DIST_SOURCES =' Makefile.in && exit 1
exit 0