source: trunk/essentials/sys-devel/automake-1.7/lib/am/remake-hdr.am

Last change on this file was 3120, checked in by bird, 18 years ago

automake 1.7.9

File size: 1.6 KB
Line 
1## automake - create Makefile.in from Makefile.am
2## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2001
3## Free Software Foundation, Inc.
4
5## This program is free software; you can redistribute it and/or modify
6## it under the terms of the GNU General Public License as published by
7## the Free Software Foundation; either version 2, or (at your option)
8## any later version.
9
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18## 02111-1307, USA.
19
20## Explicitly look in srcdir for benefit of non-GNU makes.
21
22
23%CONFIG_H%: %STAMP%
24## Recover from removal of CONFIG_HEADER
25 @if test ! -f $@; then \
26 rm -f %STAMP%; \
27 $(MAKE) %STAMP%; \
28 else :; fi
29
30
31%STAMP%: $(srcdir)/%CONFIG_HIN% $(top_builddir)/config.status
32 @rm -f %STAMP%
33 cd $(top_builddir) && $(SHELL) ./config.status %CONFIG_H_PATH%
34
35
36$(srcdir)/%CONFIG_HIN%: %MAINTAINER-MODE% $(top_srcdir)/%CONFIGURE-AC% $(ACLOCAL_M4) %FILES%
37 cd $(top_srcdir) && $(AUTOHEADER)
38## Autoheader has the bad habit of not changing the time stamp if
39## config.hin is unchanged, which breaks Make targets. Since what
40## must not changed gratuitously is config.h, which is already handled
41## by config.status, there is no reason to make things complex for
42## config.hin.
43 touch $(srcdir)/%CONFIG_HIN%
Note: See TracBrowser for help on using the repository browser.