automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: quieter compilation


From: Alexandre Duret-Lutz
Subject: FYI: quieter compilation
Date: Sat, 08 Mar 2003 10:01:29 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux)

>>> "Karl" == Karl Berry <address@hidden> writes:

 Karl> Hi Alexandre,
 Karl> I know we talked about this before, but I don't think we reached any
 Karl> conclusion ... I'd like to argue again for the default compilation rule
 Karl> to just be gcc ..., not if gcc ... then ... else ... fi, with all the
 Karl> dependency stuff in there.  Ideally with the leading space, " gcc ...",
 Karl> so that one has a clue that things have been tampered with, as is done
 Karl> for install.

 Karl> If one is actually debugging automake/autoconf/makefiles/dependencies,
 Karl> then it would be easy enough to take out the @ or run make -n or
 Karl> whatever.  But 99% of the time, you're just compiling a package, and
 Karl> having five lines of output instead of one for every compiled file is an
 Karl> annoying waste of screen real estate.  It's also caused my ssh sessions
 Karl> to crash more than once when too much output gets written too quickly :).
 Karl> Anyway, that's my argument :).


I'm installing this on HEAD.

2003-03-08  Alexandre Duret-Lutz  <address@hidden>

        * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
        (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
        Just echo the gcc command.
        Suggested by Karl Berry.

Index: lib/am/depend2.am
===================================================================
RCS file: /cvs/automake/automake/lib/am/depend2.am,v
retrieving revision 1.53
diff -u -r1.53 depend2.am
--- lib/am/depend2.am   6 Mar 2003 21:18:57 -0000       1.53
+++ lib/am/depend2.am   8 Mar 2003 08:58:44 -0000
@@ -40,7 +40,10 @@
 ?!GENERIC?%OBJ%: %SOURCE%
 if %FASTDEP%
 ## In fast-dep mode, we can always use -o.
-       if %COMPILE% -MT %OBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
+       @echo " %COMPILE% -MT %OBJ% -MD -MP -MF %DEPBASE%.Tpo %-c% -o %OBJ%" \
+?!GENERIC?     `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
+?GENERIC?      %SOURCE%
+       @if %COMPILE% -MT %OBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
 ## For non-suffix rules, we must emulate a VPATH search on %SOURCE%.
 ?!GENERIC?       %-c% -o %OBJ% `test -f '%SOURCE%' || echo 
'$(srcdir)/'`%SOURCE%; \
 ?GENERIC?        %-c% -o %OBJ% %SOURCE%; \
@@ -67,7 +70,10 @@
 ?!GENERIC?%OBJOBJ%: %SOURCE%
 if %FASTDEP%
 ## In fast-dep mode, we can always use -o.
-       if %COMPILE% -MT %OBJOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
+       @echo " %COMPILE% -MT %OBJOBJ% -MD -MP -MF %DEPBASE%.Tpo %-c% -o %OBJ%" 
\
+?!GENERIC?     `if test -f '%SOURCE%'; then $(CYGPATH_W) '%SOURCE%'; else 
$(CYGPATH_W) '$(srcdir)/%SOURCE%'; fi`
+?GENERIC?      %SOURCE%
+       @if %COMPILE% -MT %OBJOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
 ## For non-suffix rules, we must emulate a VPATH search on %SOURCE%.
 ?!GENERIC?       %-c% -o %OBJOBJ% `if test -f '%SOURCE%'; then $(CYGPATH_W) 
'%SOURCE%'; else $(CYGPATH_W) '$(srcdir)/%SOURCE%'; fi`; \
 ?GENERIC?        %-c% -o %OBJOBJ% `$(CYGPATH_W) '%SOURCE%'`; \
@@ -95,7 +101,10 @@
 ?!GENERIC?%LTOBJ%: %SOURCE%
 if %FASTDEP%
 ## In fast-dep mode, we can always use -o.
-       if %LTCOMPILE% -MT %LTOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
+       @echo " %LTCOMPILE% -MT %LTOBJ% -MD -MP -MF %DEPBASE%.Tpo %-c% -o 
%LTOBJ%" \
+?!GENERIC?     `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
+?GENERIC?      %SOURCE%
+       @if %LTCOMPILE% -MT %LTOBJ% -MD -MP -MF "%DEPBASE%.Tpo" \
 ?GENERIC?        %-c% -o %LTOBJ% %SOURCE%; \
 ## For non-suffix rules, we must emulate a VPATH search on %SOURCE%.
 ?!GENERIC?       %-c% -o %LTOBJ% `test -f '%SOURCE%' || echo 
'$(srcdir)/'`%SOURCE%; \

-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]