* automake.in (handle_configure): Replace multiple occurrences of
[automake.git] / remake-hdr.am
blobd114c85b4750cd43e86290bf203f0de9f6b3d550
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 ## 02111-1307, USA.
18 @CONFIG_HEADER@: @STAMP@
19 ## Recover from removal of CONFIG_HEADER
20         @if test ! -f $@; then \
21                 rm -f @STAMP@; \
22                 $(MAKE) @STAMP@; \
23         else :; fi
24 ## Explicitly look in srcdir for benefit of non-GNU makes.
25 @STAMP@: $(srcdir)/@CONFIG_HEADER_IN@ $(top_builddir)/config.status
26         @rm -f @STAMP@ @STAMP@T
27 ## We used to try to get a real timestamp here.  But the fear is that
28 ## that will cause unnecessary cvs conflicts
29         @echo timestamp > @STAMP@T 2> /dev/null
30         cd $(top_builddir) \
31           && CONFIG_FILES= CONFIG_HEADERS=@CONFIG_HEADER_FULL@ \
32              $(SHELL) ./config.status
33 ## Creating the timestamp first, and moving it later, helps ensure that
34 ## it will be older than the header file, avoiding needless triggering
35 ## of the rebuild rule.
36         @mv @STAMP@T @STAMP@
37 ## Explicitly look in srcdir for benefit of non-GNU makes.
38 $(srcdir)/@CONFIG_HEADER_IN@: @MAINTAINER_MODE_TRUE@$(srcdir)/@STAMP@.in
39 ## Recover from removal of CONFIG_HEADER_IN
40         @if test ! -f $@; then \
41                 rm -f $(srcdir)/@STAMP@.in; \
42                 $(MAKE) $(srcdir)/@STAMP@.in; \
43         else :; fi
44 $(srcdir)/@STAMP@.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) @FILES@
45         @rm -f $(srcdir)/@STAMP@.in $(srcdir)/@STAMP@.inT
46 ## We used to try to get a real timestamp here.  But the fear is that
47 ## that will cause unnecessary cvs conflicts
48         @echo timestamp > $(srcdir)/@STAMP@.inT 2> /dev/null
49         cd $(top_srcdir) && $(AUTOHEADER)
50 ## Creating the timestamp first, and moving it later, helps ensure that
51 ## it will be older than the header file, avoiding needless triggering
52 ## of the rebuild rule.
53         @mv $(srcdir)/@STAMP@.inT $(srcdir)/@STAMP@.in