[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running a plain ./config.status at top level
From: |
Akim Demaille |
Subject: |
Re: Running a plain ./config.status at top level |
Date: |
Tue, 08 Apr 2003 18:19:16 +0200 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) |
| I would like to suggest the following patch, which solves two
| different issues:
|
| 1. When you change configure.ac and run make in a deep hierarchy it
| takes hours to regenerate all the Makefiles from Makefile.ins.
|
| 2. When there are actions that Automake doesn't know about
| (AC_CONFIG_COMMANDS creating files), they never get a chance of
| being run.
|
| The idea is that we should probably run plain ./config.status at the
| top level update of Makefile.
|
| Hm... Of course, I can't cvs diff :( I don't have an Internet access
| for the time being. Here is a hand written patch:
Actually, the same should apply to running automake:
--- lib/am/configure.am.orig 2003-04-08 18:01:33.000000000 +0200
+++ lib/am/configure.am 2003-04-08 18:07:58.000000000 +0200
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright 2001
+## Copyright (C) 2001, 2003
## Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
@@ -23,14 +23,23 @@
## This rule remakes the Makefile.in.
%MAKEFILE-IN%: %MAINTAINER-MODE% %MAKEFILE-AM% %MAKEFILE-IN-DEPS%
$(top_srcdir)/%CONFIGURE-AC% $(ACLOCAL_M4)
+if %?TOPDIR_P%
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --%STRICTNESS% %USE-DEPS%
+else !%?TOPDIR_P%
cd $(top_srcdir) && \
$(AUTOMAKE) --%STRICTNESS% %USE-DEPS% %MAKEFILE-AM-SOURCES%
+endif !%?TOPDIR_P%
## This rule remakes the Makefile.
%MAKEFILE%: %MAINTAINER-MODE% %MAKEFILE-IN% %MAKEFILE-DEPS%
$(top_builddir)/config.status
## FIXME: $(am__depfiles_maybe) lets us re-run the rule to create the
## .P files. Ideally we wouldn't have to do this by hand.
+if %?TOPDIR_P%
+ $(SHELL) ./config.status $(am__depfiles_maybe)
+else !%?TOPDIR_P%
cd $(top_builddir) && $(SHELL) ./config.status %CONFIG-MAKEFILE%
$(am__depfiles_maybe)
+endif !%?TOPDIR_P%
## --------------------------- ##
## config.status & configure. ##
Re: Running a plain ./config.status at top level, Alexandre Duret-Lutz, 2003/04/09