]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] texi: "de-prettify" makeinfo command line
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 16 Jun 2012 20:43:50 +0000 (22:43 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 17 Jun 2012 08:24:18 +0000 (10:24 +0200)
This will make some future changes easier.  And anyway, it's usually not
worth to add code complexity to have a slightly pretty output from make;
people who want pretty output should be using "make V=0" anyway ;-)

* automake.in (handle_texinfo_helper): Make definition of $makeinfoflags
less pretty but more easy.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in

index cdc2579867a4545749d47a35c659d701cc19196c..0c4495a36c77d16dabbf44739f2c837153a698ad 100644 (file)
@@ -3007,10 +3007,7 @@ sub handle_texinfo_helper ($)
          push_dist_common ('$(' . $canonical . '_TEXINFOS)');
        }
 
-      my $sdir = dirname $texi;
-      my $makeinfoflags = ($sdir eq '.' && dirname ($out_file) eq '.')
-                           ? '-I $(srcdir)'
-                           : "-I $sdir -I \$(srcdir)/$sdir";
+      my $makeinfoflags = '-I $(@D) -I $(srcdir)/$(@D)';
 
       (my $dpfx = $out_file) =~ s/\.info$//;
       $output_rules .= file_contents ('texi-spec',