Sun Jun 1 13:16:05 1997 Tom Tromey <tromey@cygnus.com>
+ * depend2.am (.deps/%.P): Don't generate file if MKDEP fails.
+ From Alexandre Oliva.
+
+ * depend.am (.deps/.P): Depend on PRE_BUILT_SOURCES, not
+ BUILT_SOURCES.
+
+ * automake.in (initialize_global_constants): Added 1997 to
+ copyright info.
+
* automake.in (output_yacc_build_rule): Never move y.tab.c over
the .h file. From Jim Meyering.
* BUILT_SOURCES should not be distributed, even when they appear in
another _SOURCES line. [? or maybe just leave this up to the
to-be-defined generic distribution method ]
+ must completely revisit the entire BUILT_SOURCES idea
+ probably should generate dependencies as side effect of compile
+ (but that will mess up guile distributions... sigh)
* in --cygnus, clean-info not generated at top level
# Copyright on generated Makefile.ins.
$gen_copyright = "\
-# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
";
should be listed in the @code{BUILT_SOURCES} variable.
@vindex BUILT_SOURCES
-By default, built sources are not included in a distribution.
-
Built sources are also not compiled by default. You must either
explicitly mention them in some other @samp{_SOURCES} variable for this
to happen.
@code{$(BUILT_SOURCES)}. This can cause these sources to be rebuilt at
what might seem like funny times.
+There is another variable that can be used to list built sources. It is
+called @code{PRE_BUILT_SOURCES}.
+@vindex PRE_BUILT_SOURCES
+This variable should be used to list any sources that are required
+before dependency computation on the @code{BUILT_SOURCES} can be done.
+For instance, automatically-generated header files used by other
+automatically generated files would be listed here.
+
+Note that if any files in @code{PRE_BUILT_SOURCES} is rebuilt, then all
+the dependency information for every object will need to be recomputed.
+So this variable should be used sparingly.
+
@node Other GNU Tools
@chapter Other GNU Tools
## duplicated by any C source file. (Well, there could be ".c", but
## no one does that in practice)
-include .deps/.P
-## This depends on $(BUILT_SOURCES) because that lets us generate
+## This depends on $(PRE_BUILT_SOURCES) because that lets us generate
## dependencies for files that don't exist at the start of a fresh
## build.
-.deps/.P: $(BUILT_SOURCES)
+.deps/.P: $(PRE_BUILT_SOURCES)
test -d .deps || mkdir .deps
## Use ":" here and not "echo timestamp". Otherwise GNU Make barfs:
## .deps/.P:1: *** missing separator. Stop.
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997 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
@echo "Computing dependencies for $<..."
@o='o'; \
ONLYC test -n "$o" && o='$$o'; \
- $(@MKDEP@) $< | sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," > $@
+ $(@MKDEP@) $< >$@.tmp \
+ && sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," < $@.tmp > $@ \
+ && rm -f $@.tmp
## duplicated by any C source file. (Well, there could be ".c", but
## no one does that in practice)
-include .deps/.P
-## This depends on $(BUILT_SOURCES) because that lets us generate
+## This depends on $(PRE_BUILT_SOURCES) because that lets us generate
## dependencies for files that don't exist at the start of a fresh
## build.
-.deps/.P: $(BUILT_SOURCES)
+.deps/.P: $(PRE_BUILT_SOURCES)
test -d .deps || mkdir .deps
## Use ":" here and not "echo timestamp". Otherwise GNU Make barfs:
## .deps/.P:1: *** missing separator. Stop.
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997 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
@echo "Computing dependencies for $<..."
@o='o'; \
ONLYC test -n "$o" && o='$$o'; \
- $(@MKDEP@) $< | sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," > $@
+ $(@MKDEP@) $< >$@.tmp \
+ && sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," < $@.tmp > $@ \
+ && rm -f $@.tmp
-@set UPDATED 26 May 1997
+@set UPDATED 1 June 1997
@set EDITION 1.1q
@set VERSION 1.1q
-@set UPDATED 26 May 1997
+@set UPDATED 1 June 1997
@set EDITION 1.1q
@set VERSION 1.1q