From: Tom Tromey Date: Wed, 22 May 1996 15:51:52 +0000 (+0000) Subject: Bug fix X-Git-Tag: Release-1-0~9 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=86623065e1d4fef077daf0911688e972cb24eaeb;p=automake.git Bug fix --- diff --git a/ChangeLog b/ChangeLog index c9990ac7..083746fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed May 22 09:49:27 1996 Tom Tromey + + * automake.in (initialize_per_input): Don't initialize + $output_directory here; initialize it globally. From Joshua + Cowan. Test outdir.test. + Sat May 18 10:57:40 1996 Tom Tromey * automake.in (handle_tests): Don't push TESTS onto dist_common. diff --git a/Makefile.in b/Makefile.in index 4c6bafcf..61027dc5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -300,6 +300,9 @@ distdir: $(DEP_DISTFILES) rm -rf $(distdir) mkdir $(distdir) chmod 777 $(distdir) + distdir=`cd $(distdir) && pwd` \ + && cd $(srcdir) \ + && automake --include-deps --output-dir=$$distdir --strictness=gnits @for file in `cd $(srcdir) && echo $(DISTFILES)`; do \ test -f $(distdir)/$$file \ || ln $(srcdir)/$$file $(distdir)/$$file 2> /dev/null \ diff --git a/THANKS b/THANKS index a59ebb58..deb58eec 100644 --- a/THANKS +++ b/THANKS @@ -11,6 +11,7 @@ Henrik Frystyk Nielsen Jerome Santini Jim Meyering Joerg-Martin Schwarz +Joshua Cowan Karl Berry Mark Galassi Markku Rossi diff --git a/TODO b/TODO index 23e18c94..02a11893 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,10 @@ Priorities for release: [ none ] +should be able to determine what is built by looking at rules (and +configure.in). Then built man pages (eg) could automatically be +omitted from the distribution. + Consider using libfoo_SOURCES, etc, for libraries. From Gord Matzigkeit. There is a patch. diff --git a/automake.in b/automake.in index 33f65757..be5df8e6 100755 --- a/automake.in +++ b/automake.in @@ -88,6 +88,10 @@ $config_header = ''; # Line number at which AC_CONFIG_HEADER appears in configure.in. $config_header_line = 0; +# Directory where output files go. Actually, output files are +# relative to this directory. +$output_directory = '.'; + # Relative location of top build directory. $top_builddir = ''; @@ -2470,10 +2474,6 @@ sub initialize_per_input # Eg for src/Makefile.in, this is "src". $relative_dir = ''; - # Directory where output files go. Actually, output files are - # relative to this directory. - $output_directory = '.'; - # This holds a list of files that are included in the # distribution. %dist_common = (); diff --git a/tests/ChangeLog b/tests/ChangeLog index bc06985d..c323e1f1 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +Wed May 22 09:45:52 1996 Tom Tromey + + * outdir.test: New file. + Sat May 18 10:51:37 1996 Tom Tromey * insh2.test: New file. diff --git a/tests/Makefile.am b/tests/Makefile.am index f3264515..e519b7f8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -8,6 +8,6 @@ confincl.test spelling.test prefix.test badprog.test depend.test exdir.test \ canon.test installsh.test empty.test rulepat.test insh.test canon2.test \ target.test extra.test noinst.test instman.test mkinstall.test auxdir.test \ canon3.test mdate2.test subdir.test backsl.test package.test number.test \ -insh2.test +insh2.test outdir.test EXTRA_DIST = defs $(TESTS) diff --git a/tests/Makefile.in b/tests/Makefile.in index 611409dc..91143d6b 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -46,7 +46,7 @@ confincl.test spelling.test prefix.test badprog.test depend.test exdir.test \ canon.test installsh.test empty.test rulepat.test insh.test canon2.test \ target.test extra.test noinst.test instman.test mkinstall.test auxdir.test \ canon3.test mdate2.test subdir.test backsl.test package.test number.test \ -insh2.test +insh2.test outdir.test EXTRA_DIST = defs $(TESTS) mkinstalldirs = $(top_srcdir)/mkinstalldirs diff --git a/tests/outdir.test b/tests/outdir.test new file mode 100755 index 00000000..c9055684 --- /dev/null +++ b/tests/outdir.test @@ -0,0 +1,17 @@ +#! /bin/sh + +# Test to ensure that --output-dir works. Bug report from Joshua +# Cowan. + +. $srcdir/defs || exit 1 + +cat > Makefile.am <<'END' +pkgdata_DATA = +END + +mkdir zardir + +$AUTOMAKE --output-dir=zardir || exit 1 + +test -f Makefile.in && exit 1 +test -f zardir/Makefile.in