[Automake-NG] [PATCH 03/14] [ng] clean: simplify cleaning of compiled objects

2012-06-21 Thread Stefano Lattarini
* automake.in (handle_compile): Compiled objects are always to be removed upon make mostlyclean, and not (not even sometimes) upon make distclean. Simplify accordingly, removing the checks for a condition that was never true. * am/compile.am: Simplify accordingly, and do not bother cleaning

[Automake-NG] [PATCH 06/14] [ng] automake: new global variable '%clean_dirs'

2012-06-21 Thread Stefano Lattarini
Similar to the '%clean_files' variable, but it will allow us to declare directories (rather than regular files) that are to be cleaned by the four flavours of cleaning targets ('mostlyclean', 'clean', 'distclean', 'maintainer-clean'). This will be especially useful in later changes. *

[Automake-NG] [PATCH 11/14] [ng] cleanup: merge '%compile_clean_files' in '%clean_files'

2012-06-21 Thread Stefano Lattarini
No need to keep them separated anymore. * automake.in (%compile_clean_files): Delete. (initialize_per_input): Don't reset it. (handle_compile): Don't merge '%compile_clean_files' contents into '%clean_files'. (handle_single_transform): Update '%clean_files', not '%compile_clean_files'.

[Automake-NG] [PATCH 09/14] [ng] clean: don't remove object files in '.' unconditionally

2012-06-21 Thread Stefano Lattarini
Do that only if some source file is actually present in the current directory (which might not be the case for, say, projects that use a non-recursive make setup and have all sources in the 'src' and 'lib' subdirectories). * lib/am/compile.am (am__mostlyclean_files): Don't append '*.$(OBJEXT)'

[Automake-NG] [PATCH 07/14] [ng] refactoring: move definition of $(am__mv) in depend2.am

2012-06-21 Thread Stefano Lattarini
A tiny refactoring only needed by the subsequent change. * lib/am/depend.am (am__mv): Move definition ... * lib/am/depend2.am [%?FIRST%]: ... here, with a new explicative comment. Signed-off-by: Stefano Lattarini stefano.lattar...@gmail.com --- lib/am/depend.am |1 - lib/am/depend2.am |

Re: [Automake-NG] [PATCH 03/14] [ng] clean: simplify cleaning of compiled objects

2012-06-21 Thread Akim Demaille
Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : OK. +my @mostly_rms = map { \t-rm -f $_ } sort keys %compile_clean_files; my ($coms, $vars, $rules) = file_contents_internal (1, $libdir/am/compile.am, new Automake::Location, -

Re: [Automake-NG] [PATCH 04/14] [ng] clean: revamp recipes and APIs to extend cleaning rules

2012-06-21 Thread Akim Demaille
Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : This change it introduces eight new internal variables, which our all can been appended to by our Makefile fragments to declare stuff that should be cleaned upon the various make *clean targets; these new variables are: -

Re: [Automake-NG] [PATCH 08/14] [ng] cleanup: remove 'depend.am'

2012-06-21 Thread Akim Demaille
Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : It's so small and dumb that it's easier and cleaner to just inline it in the automake script. * lib/am/depend.am: Delete. * Makefile.am (dist_am_DATA): Remove it. * automake.in (handle_languages): Just add the list of all the '.deps'

Re: [Automake-NG] [PATCH 11/14] [ng] cleanup: merge '%compile_clean_files' in '%clean_files'

2012-06-21 Thread Akim Demaille
Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : No need to keep them separated anymore. * automake.in (%compile_clean_files): Delete. (initialize_per_input): Don't reset it. (handle_compile): Don't merge '%compile_clean_files' contents into '%clean_files'. (handle_single_transform):

Re: [Automake-NG] [PATCH 13/14] [ng] cleanup: remove 'libtool.am'

2012-06-21 Thread Akim Demaille
Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : + foreach my $dir (%libtool_clean_directories) +{ + # '.libs' is for Unix, '_libs' for DOS. + $clean_dirs{$dir/.libs} = CLEAN; + $clean_dirs{$dir/_libs} = CLEAN; [._]libs? +} + + if ($relative_dir eq '.') +

Re: [Automake-NG] [PATCH 14/14] [ng] check: keep cleaning of '.log' and '.trs' files near other rules

2012-06-21 Thread Akim Demaille
Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : * lib/am/parallel-tests.am: Add $(am__test_results), $(am__test_logs) and $(TEST_SUITE_LOGS) to the list of files removed by make mostlyclean here ... * automake.in (handle_tests): ... rather than here. Good too. Nice cleaning job.

Re: [Automake-NG] [FYI] [ng] maintcheck: remove a test that can't work for Automake-NG

2012-06-21 Thread Akim Demaille
Le 20 juin 2012 à 16:44, Stefano Lattarini a écrit : * syntax-checks.mk (sc_tests_makefile_variable_order): Remove. This rule checked that all variables definitions were listed before rules in the automake-generated Makefile.in files; but this invariant is not guaranteed anymore by

Re: [Automake-NG] [PATCH 03/14] [ng] clean: simplify cleaning of compiled objects

2012-06-21 Thread Dave Hart
On Thu, Jun 21, 2012 at 10:32 UTC, Stefano Lattarini wrote: * automake.in (handle_compile): Compiled objects are always to be removed upon make mostlyclean, and not (not even sometimes) upon make distclean. This is awkward. I suggest: Compiled objects must be removed by make mostlyclean, but

Re: [Automake-NG] [PATCH 01/14] [ng] deptrack: remove an obsolete comment

2012-06-21 Thread Dave Hart
On Thu, Jun 21, 2012 at 10:32 AM, Stefano Lattarini wrote: * lib/am/depend.am: Since in Automake-NG the generated Makefile calls '-include' (not 'include') on the dependency tracking '.Po' files, we can remove them at any time without causing any 'make' call to fail. I assume you already

Re: [Automake-NG] [PATCH 05/14] [ng] clean: do not ignore errors while removing files

2012-06-21 Thread Dave Hart
On Thu, Jun 21, 2012 at 10:32 AM, Stefano Lattarini stefano.lattar...@gmail.com wrote: Possible culprits have been identified with the command git grep '-rm\b'. * NG-NEWS: Update. * lib/am/tags.am, lib/am/distdir.am, lib/am/dejagnu.am, lib/am/clean.am: Do not invoke rm when the - recipe

Re: [Automake-NG] [PATCH 04/14] [ng] clean: revamp recipes and APIs to extend cleaning rules

2012-06-21 Thread Dave Hart
On Thu, Jun 21, 2012 at 10:32 UTC, Stefano Lattarini wrote: This change it introduces eight new internal variables, which our s/ our// The rest looks good. Cheers, Dave Hart

Re: [Automake-NG] [PATCH 01/14] [ng] deptrack: remove an obsolete comment

2012-06-21 Thread Stefano Lattarini
Hi Dave, thanks for the review. On 06/21/2012 07:16 PM, Dave Hart wrote: On Thu, Jun 21, 2012 at 10:32 AM, Stefano Lattarini wrote: * lib/am/depend.am: Since in Automake-NG the generated Makefile calls '-include' (not 'include') on the dependency tracking '.Po' files, we can remove them at

Re: [Automake-NG] [PATCH 03/14] [ng] clean: simplify cleaning of compiled objects

2012-06-21 Thread Stefano Lattarini
Hi Akim. On 06/21/2012 02:35 PM, Akim Demaille wrote: Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : OK. +my @mostly_rms = map { \t-rm -f $_ } sort keys %compile_clean_files; my ($coms, $vars, $rules) = file_contents_internal (1, $libdir/am/compile.am,

Re: [Automake-NG] [PATCH 01/14] [ng] deptrack: remove an obsolete comment

2012-06-21 Thread Dave Hart
On Thu, Jun 21, 2012 at 18:29 UTC, Stefano Lattarini wrote: Hi Dave, thanks for the review. On 06/21/2012 07:16 PM, Dave Hart wrote: On Thu, Jun 21, 2012 at 10:32 AM, Stefano Lattarini wrote: * lib/am/depend.am: Since in Automake-NG the generated Makefile calls '-include' (not 'include') on

Re: [Automake-NG] [PATCH 04/14] [ng] clean: revamp recipes and APIs to extend cleaning rules

2012-06-21 Thread Stefano Lattarini
On 06/21/2012 02:49 PM, Akim Demaille wrote: Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : This change it introduces eight new internal variables, which our all Thanks, fixed (our was a leftover from a previous, alternative wording). can been appended to by our Makefile

Re: [Automake-NG] [PATCH 09/14] [ng] clean: don't remove object files in '.' unconditionally

2012-06-21 Thread Stefano Lattarini
On 06/21/2012 02:59 PM, Akim Demaille wrote: Le 21 juin 2012 à 12:32, Stefano Lattarini a écrit : Do that only if some source file is actually present in the current directory (which might not be the case for, say, projects that use a non-recursive make setup and have all sources in the

[Automake-NG] [PATCH 16/14] [ng] clean: drop minor DOS-related cruft in libtool support

2012-06-21 Thread Stefano Lattarini
* automake.in (handle_libtool): Do not bother cleaning '_libs' directories, they are only used by Libtool on MS-DOS (and we don't support that anymore). Signed-off-by: Stefano Lattarini stefano.lattar...@gmail.com --- automake.in |2 -- 1 file changed, 2 deletions(-) diff --git

[Automake-NG] [RFC] [ng] cleanup: merge '%compile_clean_files' in '%clean_files'

2012-06-21 Thread Stefano Lattarini
No need to keep them separated anymore. * automake.in (%libtool_clean_directories): Delete. (initialize_per_input): Don't reset it. (handle_compile): Don't merge '%libtool_clean_directories' (after proper editing) into '%clean_dirs'. (handle_ltlibraries, handle_programs, handle_single_transform):

Re: [PATCH] {master} missing: do not touch timestamps; only warn for out-of-date files

2012-06-21 Thread Stefano Lattarini
Hi Dave. On 06/21/2012 12:33 AM, Dave Hart wrote: I had no idea missing would monkey with timestamps like that. I'm wholeheartedly in favor of removing that capability in the name of predictably correct results. Glad you agree :-) While I agree fix-timestamps.sh might be a clearer name,

[FYI] {maint} docs: avoid failures with development version of Texinfo (4.13.90)

2012-06-21 Thread Stefano Lattarini
* doc/automake-history.texi: Use '@item' instead of '@itemx' where appropriate. Signed-off-by: Stefano Lattarini stefano.lattar...@gmail.com --- doc/automake-history.texi |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/automake-history.texi

[FYI] Merge branch 'maint' into master

2012-06-21 Thread Stefano Lattarini
commit 488de31efa525d864ad56cd023f3b33c83101088 Merge: 7c6310c d0dc448 Author: Stefano Lattarini stefano.lattar...@gmail.com Date: Thu Jun 21 13:15:05 2012 +0200 Merge branch 'maint' * maint: docs: avoid failures with development version of Texinfo (4.13.90) typofix: s/test

Re: [PATCH] {master} missing: do not touch timestamps; only warn for out-of-date files

2012-06-21 Thread Stefano Lattarini
On 06/21/2012 05:44 PM, Dave Hart wrote: On Thu, Jun 21, 2012 at 9:54 AM, Stefano Lattarini stefano.lattar...@gmail.com wrote: On 06/21/2012 12:33 AM, Dave Hart wrote: While I agree fix-timestamps.sh might be a clearer name, using the name bootstrap for the clone-from-VCS

Re: [PATCH] {maint} tests: use more POSIX shell features our test scripts

2012-06-21 Thread Stefano Lattarini
On 06/14/2012 09:55 PM, Stefano Lattarini wrote: This is as far as I got in my line-by-line review in the time I have today; if you want to wait for another few days, I can resume my review in time for your initial push. Or you can go ahead and push, and I can report any further issues for

Re: [PATCH] {master} missing: do not touch timestamps; only warn for out-of-date files

2012-06-21 Thread Dave Hart
On Thu, Jun 21, 2012 at 9:54 AM, Stefano Lattarini stefano.lattar...@gmail.com wrote: On 06/21/2012 12:33 AM, Dave Hart wrote: While I agree fix-timestamps.sh might be a clearer name, using the name bootstrap for the clone-from-VCS before-first-configure step. NTP tarballs carry a bootstrap

Automatic dependency tracking in the Git build system (was: Re: [PATCHv2 1/8] Makefile: apply dependencies consistently to sparse/asm targets)

2012-06-21 Thread Stefano Lattarini
[Adding the Automake list in CC:] On 06/20/2012 09:57 PM, Jeff King wrote: On Wed, Jun 20, 2012 at 02:45:31PM -0500, Jonathan Nieder wrote: Jeff King wrote: Did you read the argument in patch 2? They are almost certainly not helping anyone, anyway. Yes, I read patch 2. I hacked on git

How to use BUILT_SOURCES ?

2012-06-21 Thread Timothy Madden
Hello I have automake 1.11.1 (on CentOS 6.2 x86_64), and a Makefile.am like this: AM_YFLAGS=-d BUILT_SOURCES=position.hh location.hh code-formatter-parser.hh stack.hh bin_PROGRAMS=code-formatter code_formatter_SOURCES=code-formatter-parser.yy code-formatter-lexer.ll\