public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfsprogs: Make the compile output cleaner V2
@ 2010-01-13 10:03 Dave Chinner
  2010-01-13 14:50 ` Eric Sandeen
  2010-01-13 22:08 ` Christoph Hellwig
  0 siblings, 2 replies; 8+ messages in thread
From: Dave Chinner @ 2010-01-13 10:03 UTC (permalink / raw)
  To: xfs

We don't need to see every compiler command line for every file that
is compiled. This makes it hard to see warnings and errors during
compile. For progress notification, we really only need to see the
diretory/file being operated on.

Turn down the verbosity of output by suppressing various make output
and provide better overall visibility of which directory is being
operated on, what the operation is and what is being done to the
files by the build/clean process. Also fix the top level clean rule
so that we don't run configure scripts after a make clean, only after
a make distclean.

Sample output from a build:

....
Building libxlog
    [CC] xfs_log_recover.c
    [CC] util.c
    [LD] libxlog.la
Building libxcmd
    [CC] command.c
    [CC] input.c
    [CC] paths.c
    [CC] projects.c
    [CC] help.c
    [CC] quit.c
    [LD] libxcmd.la
....

Sample output from cleaning:

$ make clean
Cleaning include
Cleaning libxfs
Cleaning libxlog
Cleaning libxcmd
Cleaning libhandle
Cleaning libdisk
Cleaning copy
Cleaning db
....

If you want to see a noisy build (i.e. every command), use:

$ make Q=

and that will output all the commands that are now suppressed by
default.

Portions of this patch were contributed by Eric Sandeen.

Signed-off-by: Dave Chinner <david@fromorbit.com>
---
 Makefile            |   43 +++++++++++++++++++++++++++++--------------
 doc/Makefile        |    3 ++-
 include/Makefile    |    3 ++-
 include/buildmacros |   10 +++++-----
 include/buildrules  |   30 +++++++++++++++++++++---------
 mkfs/Makefile       |    3 ++-
 6 files changed, 61 insertions(+), 31 deletions(-)

diff --git a/Makefile b/Makefile
index 2d394e4..62c4258 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,21 @@
 # Copyright (c) 2000-2006 Silicon Graphics, Inc.  All Rights Reserved.
 #
 
+ifeq ("$(origin V)", "command line")
+  BUILD_VERBOSE = $(V)
+endif
+ifndef BUILD_VERBOSE
+  BUILD_VERBOSE = 0
+endif
+
+ifeq ($(BUILD_VERBOSE),1)
+  Q =
+else
+  Q = @
+endif
+
+MAKEOPTS = --no-print-directory Q=$(Q)
+
 TOPDIR = .
 HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo yes || echo no)
 
@@ -15,7 +30,7 @@ SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
 CONFIGURE = aclocal.m4 configure config.guess config.sub install-sh ltmain.sh
 LSRCFILES = configure.in release.sh README VERSION $(CONFIGURE)
 
-LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
+DISTDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
 	built .census install.* install-dev.* *.gz autom4te.cache/* libtool \
 	include/builddefs include/platform_defs.h
 
@@ -36,9 +51,9 @@ SUBDIRS = include $(LIB_SUBDIRS) $(TOOL_SUBDIRS)
 
 default: include/builddefs include/platform_defs.h
 ifeq ($(HAVE_BUILDDEFS), no)
-	$(MAKE) -C . $@
+	$(Q)$(MAKE) $(MAKEOPTS) -C . $@
 else
-	$(MAKE) $(SUBDIRS)
+	$(Q)$(MAKE) $(MAKEOPTS) $(SUBDIRS)
 endif
 
 # tool/lib dependencies
@@ -80,7 +95,7 @@ include/platform_defs.h: include/builddefs
 ## Recover from the removal of $@
 	@if test -f $@; then :; else \
 		rm -f include/builddefs; \
-		$(MAKE) $(AM_MAKEFLAGS) include/builddefs; \
+		$(MAKE) $(MAKEOPTS) $(AM_MAKEFLAGS) include/builddefs; \
 	fi
 
 install: default $(addsuffix -install,$(SUBDIRS))
@@ -101,29 +116,29 @@ install-qa: install $(addsuffix -install-qa,$(SUBDIRS))
 	$(MAKE) -C $* install-qa
 
 distclean: clean
-	rm -f $(LDIRT)
+	$(Q)rm -f $(DISTDIRT)
 
 realclean: distclean
-	rm -f $(CONFIGURE)
+	$(Q)rm -f $(CONFIGURE)
 
 #
 # All this gunk is to allow for a make dist on an unconfigured tree
 #
 dist: include/builddefs include/platform_defs.h default
 ifeq ($(HAVE_BUILDDEFS), no)
-	$(MAKE) -C . $@
+	$(Q)$(MAKE) $(MAKEOPTS) -C . $@
 else
-	$(MAKE) $(SRCTAR)
+	$(Q)$(MAKE) $(MAKEOPTS) $(SRCTAR)
 endif
 
 deb: include/builddefs include/platform_defs.h
 ifeq ($(HAVE_BUILDDEFS), no)
-	$(MAKE) -C . $@
+	$(Q)$(MAKE) $(MAKEOPTS) -C . $@
 else
-	$(MAKE) $(SRCDIR)
-	$(MAKE) -C po
-	$(MAKE) source-link
-	cd $(SRCDIR) && dpkg-buildpackage
+	$(Q)$(MAKE) $(MAKEOPTS) $(SRCDIR)
+	$(Q)$(MAKE) $(MAKEOPTS) -C po
+	$(Q)$(MAKE) $(MAKEOPTS) source-link
+	$(Q)cd $(SRCDIR) && dpkg-buildpackage
 endif
 
 $(SRCDIR) : $(_FORCE)
@@ -131,6 +146,6 @@ $(SRCDIR) : $(_FORCE)
 	mkdir -p $@
 
 $(SRCTAR) : default $(SRCDIR)
-	$(MAKE) source-link
+	$(Q)$(MAKE) $(MAKEOPTS) source-link
 	unset TAPE; $(TAR) -cf - $(SRCDIR) | $(ZIP) --best > $@ && \
 	echo Wrote: $@
diff --git a/doc/Makefile b/doc/Makefile
index 8f65b66..86ac2ca 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -13,7 +13,8 @@ default: CHANGES.gz
 include $(BUILDRULES)
 
 CHANGES.gz:
-	$(ZIP) --best -c < CHANGES > $@
+	@echo "    [ZIP]    $@"
+	$(Q)$(ZIP) --best -c < CHANGES > $@
 
 install: default
 	$(INSTALL) -m 755 -d $(PKG_DOC_DIR)
diff --git a/include/Makefile b/include/Makefile
index d89480e..bc787db 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -43,7 +43,8 @@ LDIRT = xfs disk
 default install: xfs disk
 
 xfs disk:
-	$(LN_S) . $@
+	@echo "    [LN]     $@"
+	$(Q)$(LN_S) . $@
 
 include $(BUILDRULES)
 
diff --git a/include/buildmacros b/include/buildmacros
index 099570f..62babca 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -13,7 +13,7 @@ LDFLAGS += $(LOADERFLAGS) $(LLDFLAGS)
 LTLDFLAGS += $(LOADERFLAGS)
 LDLIBS = $(LLDLIBS) $(PLDLIBS) $(MALLOCLIB)
 
-MAKEOPTS = --no-print-directory
+MAKEOPTS = --no-print-directory Q=$(Q)
 SRCFILES = Makefile $(HFILES) $(CFILES) $(LSRCFILES) $(LFILES) $(YFILES)
 SRCFILES += $(QAHFILES)
 
@@ -45,10 +45,10 @@ LIBNAME = $(basename $(LTLIBRARY))
 LTOBJECTS = $(OBJECTS:.o=.lo)
 LTVERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
-LTLINK = $(LIBTOOL) --tag=CC --mode=link $(CC)
-LTEXEC = $(LIBTOOL) --mode=execute
-LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
-LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CCF)
+LTLINK = $(LIBTOOL) --quiet --tag=CC --mode=link $(CC)
+LTEXEC = $(LIBTOOL) --quiet --mode=execute
+LTINSTALL = $(LIBTOOL) --quiet --mode=install $(INSTALL)
+LTCOMPILE = $(LIBTOOL) --quiet --tag=CC --mode=compile $(CCF)
 
 ifeq ($(ENABLE_SHARED),yes)
 LTLDFLAGS += -rpath $(PKG_ROOT_LIB_DIR)
diff --git a/include/buildrules b/include/buildrules
index a06d480..464dfe3 100644
--- a/include/buildrules
+++ b/include/buildrules
@@ -7,10 +7,11 @@ _BUILDRULES_INCLUDED_ = 1
 include $(TOPDIR)/include/builddefs
 
 clean clobber : $(addsuffix -clean,$(SUBDIRS))
-	rm -f $(DIRT)
-	rm -fr $(DIRDIRT)
+	$(Q)rm -f $(DIRT)
+	$(Q)rm -fr $(DIRDIRT)
 %-clean:
-	$(MAKE) -C $* clean
+	@echo "Cleaning $*"
+	$(Q)$(MAKE) $(MAKEOPTS) -C $* clean
 
 # Never blow away subdirs
 ifdef SUBDIRS
@@ -18,7 +19,8 @@ ifdef SUBDIRS
 .PHONY: $(SUBDIRS)
 
 $(SUBDIRS):
-	$(MAKE) -C $@
+	@echo "Building $@"
+	$(Q)$(MAKE) $(MAKEOPTS) -q -C $@ || $(MAKE) $(MAKEOPTS) -C $@
 endif
 
 source-link: 
@@ -38,20 +40,29 @@ source-link:
 
 ifdef LTCOMMAND
 $(LTCOMMAND) : $(SUBDIRS) $(OBJECTS) $(LTDEPENDENCIES)
-	$(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
+	@echo "    [LD]     $@"
+	$(Q)$(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
 endif
 
 ifdef LTLIBRARY
 $(LTLIBRARY) : $(SUBDIRS) $(LTOBJECTS)
-	$(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
+	@echo "    [LD]     $@"
+	$(Q)$(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
 
 %.lo: %.c
-	$(LTCOMPILE) -c $<
+	@echo "    [CC]     $@"
+	$(Q)$(LTCOMPILE) -c $<
+else
+%.o: %.c
+	@echo "    [CC]     $@"
+	$(Q)$(CC) $(CFLAGS) -c $<
+
 endif
 
 ifdef POTHEAD
 $(POTHEAD): $(XGETTEXTFILES)
-	$(XGETTEXT) --language=C --keyword=_ --keyword=N_ -o $@ $(XGETTEXTFILES)
+	@echo "    [GETTXT] $@"
+	$(Q)$(XGETTEXT) --language=C --keyword=_ --keyword=N_ -o $@ $(XGETTEXTFILES)
 
 # Update translations
 update-po: $(POTHEAD) $(wildcard $(TOPDIR)/po/*.po)
@@ -70,7 +81,8 @@ update-po: $(POTHEAD) $(wildcard $(TOPDIR)/po/*.po)
 	done
 
 %.mo: %.po
-	$(MSGFMT) -c --statistics -o $@ $<
+	@echo "    [MSGFMT] $@"
+	$(Q)$(MSGFMT) -c --statistics -o $@ $<
 endif
 
 endif # _BUILDRULES_INCLUDED_
diff --git a/mkfs/Makefile b/mkfs/Makefile
index 9fcadf2..a749262 100644
--- a/mkfs/Makefile
+++ b/mkfs/Makefile
@@ -36,7 +36,8 @@ endif
 include $(BUILDRULES)
 
 $(FSTYP):
-	$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LIBDISK) $(PLDLIBS)
+	@echo "    [CC]     $@"
+	$(Q)$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LIBDISK) $(PLDLIBS)
 
 install: default
 	$(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
-- 
1.6.5

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-13 10:03 [PATCH] xfsprogs: Make the compile output cleaner V2 Dave Chinner
@ 2010-01-13 14:50 ` Eric Sandeen
  2010-01-13 22:08 ` Christoph Hellwig
  1 sibling, 0 replies; 8+ messages in thread
From: Eric Sandeen @ 2010-01-13 14:50 UTC (permalink / raw)
  To: Dave Chinner; +Cc: xfs@oss.sgi.com

On Jan 13, 2010, at 4:03 AM, Dave Chinner <david@fromorbit.com> wrote:

> We don't need to see every compiler command line for every file that
> is compiled. This makes it hard to see warnings and errors during
> compile. For progress notification, we really only need to see the
> diretory/file being operated on.
>
> Turn down the verbosity of output by suppressing various make output
> and provide better overall visibility of which directory is being
> operated on, what the operation is and what is being done to the
> files by the build/clean process. Also fix the top level clean rule
> so that we don't run configure scripts after a make clean, only after
> a make distclean.
>
> Sample output from a build:
>
> ....
> Building libxlog
>    [CC] xfs_log_recover.c
>    [CC] util.c
>    [LD] libxlog.la
> Building libxcmd
>    [CC] command.c
>    [CC] input.c
>    [CC] paths.c
>    [CC] projects.c
>    [CC] help.c
>    [CC] quit.c
>    [LD] libxcmd.la
> ....
>
> Sample output from cleaning:
>
> $ make clean
> Cleaning include
> Cleaning libxfs
> Cleaning libxlog
> Cleaning libxcmd
> Cleaning libhandle
> Cleaning libdisk
> Cleaning copy
> Cleaning db
> ....
>
> If you want to see a noisy build (i.e. every command), use:
>
> $ make Q=
>
> and that will output all the commands that are now suppressed by
> default.
>
> Portions of this patch were contributed by Eric Sandeen.
>
> Signed-off-by: Dave Chinner <david@fromorbit.com>

Reviewed-by: Eric Sandeen <sandeen@sandeen.net>

> ---
> Makefile            |   43 +++++++++++++++++++++++++++++--------------
> doc/Makefile        |    3 ++-
> include/Makefile    |    3 ++-
> include/buildmacros |   10 +++++-----
> include/buildrules  |   30 +++++++++++++++++++++---------
> mkfs/Makefile       |    3 ++-
> 6 files changed, 61 insertions(+), 31 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 2d394e4..62c4258 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2,6 +2,21 @@
> # Copyright (c) 2000-2006 Silicon Graphics, Inc.  All Rights Reserved.
> #
>
> +ifeq ("$(origin V)", "command line")
> +  BUILD_VERBOSE = $(V)
> +endif
> +ifndef BUILD_VERBOSE
> +  BUILD_VERBOSE = 0
> +endif
> +
> +ifeq ($(BUILD_VERBOSE),1)
> +  Q =
> +else
> +  Q = @
> +endif
> +
> +MAKEOPTS = --no-print-directory Q=$(Q)
> +
> TOPDIR = .
> HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo  
> yes || echo no)
>
> @@ -15,7 +30,7 @@ SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
> CONFIGURE = aclocal.m4 configure config.guess config.sub install-sh  
> ltmain.sh
> LSRCFILES = configure.in release.sh README VERSION $(CONFIGURE)
>
> -LDIRT = config.log .dep config.status config.cache confdefs.h  
> conftest* \
> +DISTDIRT = config.log .dep config.status config.cache confdefs.h  
> conftest* \
>    built .census install.* install-dev.* *.gz autom4te.cache/*  
> libtool \
>    include/builddefs include/platform_defs.h
>
> @@ -36,9 +51,9 @@ SUBDIRS = include $(LIB_SUBDIRS) $(TOOL_SUBDIRS)
>
> default: include/builddefs include/platform_defs.h
> ifeq ($(HAVE_BUILDDEFS), no)
> -    $(MAKE) -C . $@
> +    $(Q)$(MAKE) $(MAKEOPTS) -C . $@
> else
> -    $(MAKE) $(SUBDIRS)
> +    $(Q)$(MAKE) $(MAKEOPTS) $(SUBDIRS)
> endif
>
> # tool/lib dependencies
> @@ -80,7 +95,7 @@ include/platform_defs.h: include/builddefs
> ## Recover from the removal of $@
>    @if test -f $@; then :; else \
>        rm -f include/builddefs; \
> -        $(MAKE) $(AM_MAKEFLAGS) include/builddefs; \
> +        $(MAKE) $(MAKEOPTS) $(AM_MAKEFLAGS) include/builddefs; \
>    fi
>
> install: default $(addsuffix -install,$(SUBDIRS))
> @@ -101,29 +116,29 @@ install-qa: install $(addsuffix -install-qa,$ 
> (SUBDIRS))
>    $(MAKE) -C $* install-qa
>
> distclean: clean
> -    rm -f $(LDIRT)
> +    $(Q)rm -f $(DISTDIRT)
>
> realclean: distclean
> -    rm -f $(CONFIGURE)
> +    $(Q)rm -f $(CONFIGURE)
>
> #
> # All this gunk is to allow for a make dist on an unconfigured tree
> #
> dist: include/builddefs include/platform_defs.h default
> ifeq ($(HAVE_BUILDDEFS), no)
> -    $(MAKE) -C . $@
> +    $(Q)$(MAKE) $(MAKEOPTS) -C . $@
> else
> -    $(MAKE) $(SRCTAR)
> +    $(Q)$(MAKE) $(MAKEOPTS) $(SRCTAR)
> endif
>
> deb: include/builddefs include/platform_defs.h
> ifeq ($(HAVE_BUILDDEFS), no)
> -    $(MAKE) -C . $@
> +    $(Q)$(MAKE) $(MAKEOPTS) -C . $@
> else
> -    $(MAKE) $(SRCDIR)
> -    $(MAKE) -C po
> -    $(MAKE) source-link
> -    cd $(SRCDIR) && dpkg-buildpackage
> +    $(Q)$(MAKE) $(MAKEOPTS) $(SRCDIR)
> +    $(Q)$(MAKE) $(MAKEOPTS) -C po
> +    $(Q)$(MAKE) $(MAKEOPTS) source-link
> +    $(Q)cd $(SRCDIR) && dpkg-buildpackage
> endif
>
> $(SRCDIR) : $(_FORCE)
> @@ -131,6 +146,6 @@ $(SRCDIR) : $(_FORCE)
>    mkdir -p $@
>
> $(SRCTAR) : default $(SRCDIR)
> -    $(MAKE) source-link
> +    $(Q)$(MAKE) $(MAKEOPTS) source-link
>    unset TAPE; $(TAR) -cf - $(SRCDIR) | $(ZIP) --best > $@ && \
>    echo Wrote: $@
> diff --git a/doc/Makefile b/doc/Makefile
> index 8f65b66..86ac2ca 100644
> --- a/doc/Makefile
> +++ b/doc/Makefile
> @@ -13,7 +13,8 @@ default: CHANGES.gz
> include $(BUILDRULES)
>
> CHANGES.gz:
> -    $(ZIP) --best -c < CHANGES > $@
> +    @echo "    [ZIP]    $@"
> +    $(Q)$(ZIP) --best -c < CHANGES > $@
>
> install: default
>    $(INSTALL) -m 755 -d $(PKG_DOC_DIR)
> diff --git a/include/Makefile b/include/Makefile
> index d89480e..bc787db 100644
> --- a/include/Makefile
> +++ b/include/Makefile
> @@ -43,7 +43,8 @@ LDIRT = xfs disk
> default install: xfs disk
>
> xfs disk:
> -    $(LN_S) . $@
> +    @echo "    [LN]     $@"
> +    $(Q)$(LN_S) . $@
>
> include $(BUILDRULES)
>
> diff --git a/include/buildmacros b/include/buildmacros
> index 099570f..62babca 100644
> --- a/include/buildmacros
> +++ b/include/buildmacros
> @@ -13,7 +13,7 @@ LDFLAGS += $(LOADERFLAGS) $(LLDFLAGS)
> LTLDFLAGS += $(LOADERFLAGS)
> LDLIBS = $(LLDLIBS) $(PLDLIBS) $(MALLOCLIB)
>
> -MAKEOPTS = --no-print-directory
> +MAKEOPTS = --no-print-directory Q=$(Q)
> SRCFILES = Makefile $(HFILES) $(CFILES) $(LSRCFILES) $(LFILES) $ 
> (YFILES)
> SRCFILES += $(QAHFILES)
>
> @@ -45,10 +45,10 @@ LIBNAME = $(basename $(LTLIBRARY))
> LTOBJECTS = $(OBJECTS:.o=.lo)
> LTVERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
>
> -LTLINK = $(LIBTOOL) --tag=CC --mode=link $(CC)
> -LTEXEC = $(LIBTOOL) --mode=execute
> -LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
> -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CCF)
> +LTLINK = $(LIBTOOL) --quiet --tag=CC --mode=link $(CC)
> +LTEXEC = $(LIBTOOL) --quiet --mode=execute
> +LTINSTALL = $(LIBTOOL) --quiet --mode=install $(INSTALL)
> +LTCOMPILE = $(LIBTOOL) --quiet --tag=CC --mode=compile $(CCF)
>
> ifeq ($(ENABLE_SHARED),yes)
> LTLDFLAGS += -rpath $(PKG_ROOT_LIB_DIR)
> diff --git a/include/buildrules b/include/buildrules
> index a06d480..464dfe3 100644
> --- a/include/buildrules
> +++ b/include/buildrules
> @@ -7,10 +7,11 @@ _BUILDRULES_INCLUDED_ = 1
> include $(TOPDIR)/include/builddefs
>
> clean clobber : $(addsuffix -clean,$(SUBDIRS))
> -    rm -f $(DIRT)
> -    rm -fr $(DIRDIRT)
> +    $(Q)rm -f $(DIRT)
> +    $(Q)rm -fr $(DIRDIRT)
> %-clean:
> -    $(MAKE) -C $* clean
> +    @echo "Cleaning $*"
> +    $(Q)$(MAKE) $(MAKEOPTS) -C $* clean
>
> # Never blow away subdirs
> ifdef SUBDIRS
> @@ -18,7 +19,8 @@ ifdef SUBDIRS
> .PHONY: $(SUBDIRS)
>
> $(SUBDIRS):
> -    $(MAKE) -C $@
> +    @echo "Building $@"
> +    $(Q)$(MAKE) $(MAKEOPTS) -q -C $@ || $(MAKE) $(MAKEOPTS) -C $@
> endif
>
> source-link:
> @@ -38,20 +40,29 @@ source-link:
>
> ifdef LTCOMMAND
> $(LTCOMMAND) : $(SUBDIRS) $(OBJECTS) $(LTDEPENDENCIES)
> -    $(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
> +    @echo "    [LD]     $@"
> +    $(Q)$(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
> endif
>
> ifdef LTLIBRARY
> $(LTLIBRARY) : $(SUBDIRS) $(LTOBJECTS)
> -    $(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
> +    @echo "    [LD]     $@"
> +    $(Q)$(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
>
> %.lo: %.c
> -    $(LTCOMPILE) -c $<
> +    @echo "    [CC]     $@"
> +    $(Q)$(LTCOMPILE) -c $<
> +else
> +%.o: %.c
> +    @echo "    [CC]     $@"
> +    $(Q)$(CC) $(CFLAGS) -c $<
> +
> endif
>
> ifdef POTHEAD
> $(POTHEAD): $(XGETTEXTFILES)
> -    $(XGETTEXT) --language=C --keyword=_ --keyword=N_ -o $@ $ 
> (XGETTEXTFILES)
> +    @echo "    [GETTXT] $@"
> +    $(Q)$(XGETTEXT) --language=C --keyword=_ --keyword=N_ -o $@ $ 
> (XGETTEXTFILES)
>
> # Update translations
> update-po: $(POTHEAD) $(wildcard $(TOPDIR)/po/*.po)
> @@ -70,7 +81,8 @@ update-po: $(POTHEAD) $(wildcard $(TOPDIR)/po/*.po)
>    done
>
> %.mo: %.po
> -    $(MSGFMT) -c --statistics -o $@ $<
> +    @echo "    [MSGFMT] $@"
> +    $(Q)$(MSGFMT) -c --statistics -o $@ $<
> endif
>
> endif # _BUILDRULES_INCLUDED_
> diff --git a/mkfs/Makefile b/mkfs/Makefile
> index 9fcadf2..a749262 100644
> --- a/mkfs/Makefile
> +++ b/mkfs/Makefile
> @@ -36,7 +36,8 @@ endif
> include $(BUILDRULES)
>
> $(FSTYP):
> -    $(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LIBDISK) $(PLDLIBS)
> +    @echo "    [CC]     $@"
> +    $(Q)$(LTLINK) $@.c -o $@ $(CFLAGS) $(LDFLAGS) $(LIBDISK) $ 
> (PLDLIBS)
>
> install: default
>    $(INSTALL) -m 755 -d $(PKG_ROOT_SBIN_DIR)
> -- 
> 1.6.5
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-13 10:03 [PATCH] xfsprogs: Make the compile output cleaner V2 Dave Chinner
  2010-01-13 14:50 ` Eric Sandeen
@ 2010-01-13 22:08 ` Christoph Hellwig
  2010-01-13 22:30   ` Dave Chinner
  2010-01-13 22:43   ` Alex Elder
  1 sibling, 2 replies; 8+ messages in thread
From: Christoph Hellwig @ 2010-01-13 22:08 UTC (permalink / raw)
  To: Dave Chinner; +Cc: xfs

On Wed, Jan 13, 2010 at 09:03:27PM +1100, Dave Chinner wrote:
> -LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
> +DISTDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
>  	built .census install.* install-dev.* *.gz autom4te.cache/* libtool \
>  	include/builddefs include/platform_defs.h

>  distclean: clean
> -	rm -f $(LDIRT)
> +	$(Q)rm -f $(DISTDIRT)

What does this have to do with the rest?

Otherwise looks good,


Reviewed-by: Christoph Hellwig <hch@lst.de>

Any chance you could also port it to xfsdump?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-13 22:08 ` Christoph Hellwig
@ 2010-01-13 22:30   ` Dave Chinner
  2010-01-14  6:51     ` Christoph Hellwig
  2010-01-13 22:43   ` Alex Elder
  1 sibling, 1 reply; 8+ messages in thread
From: Dave Chinner @ 2010-01-13 22:30 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs

On Wed, Jan 13, 2010 at 05:08:14PM -0500, Christoph Hellwig wrote:
> On Wed, Jan 13, 2010 at 09:03:27PM +1100, Dave Chinner wrote:
> > -LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
> > +DISTDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
> >  	built .census install.* install-dev.* *.gz autom4te.cache/* libtool \
> >  	include/builddefs include/platform_defs.h
> 
> >  distclean: clean
> > -	rm -f $(LDIRT)
> > +	$(Q)rm -f $(DISTDIRT)
> 
> What does this have to do with the rest?

That's the "make clean doesn't cause configure to run again" fix.

> Otherwise looks good,
> 
> 
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> 
> Any chance you could also port it to xfsdump?

Yes, I'm slowly working my way through the different trees
doing this, then I'll go fix all the compile warnings we
currently have...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-13 22:08 ` Christoph Hellwig
  2010-01-13 22:30   ` Dave Chinner
@ 2010-01-13 22:43   ` Alex Elder
  1 sibling, 0 replies; 8+ messages in thread
From: Alex Elder @ 2010-01-13 22:43 UTC (permalink / raw)
  To: Christoph Hellwig, Dave Chinner; +Cc: xfs

Christoph Hellwig wrote:
> On Wed, Jan 13, 2010 at 09:03:27PM +1100, Dave Chinner wrote:
>> -LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
>> +DISTDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
>>  	built .census install.* install-dev.* *.gz autom4te.cache/* libtool \
>>  	include/builddefs include/platform_defs.h
> 
>>  distclean: clean
>> -	rm -f $(LDIRT)
>> +	$(Q)rm -f $(DISTDIRT)
> 
> What does this have to do with the rest?
> 
> Otherwise looks good,

I didn't get the original in my e-mail or I would have
responded to it directly.  I like this change a lot.

> Reviewed-by: Christoph Hellwig <hch@lst.de>
> 
> Any chance you could also port it to xfsdump?

And dmapi and xfstests, for that matter...

Reviewed-by: Alex Elder <aelder@sgi.com>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-13 22:30   ` Dave Chinner
@ 2010-01-14  6:51     ` Christoph Hellwig
  2010-01-14 10:11       ` Dave Chinner
  0 siblings, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2010-01-14  6:51 UTC (permalink / raw)
  To: Dave Chinner; +Cc: Christoph Hellwig, xfs

On Thu, Jan 14, 2010 at 09:30:01AM +1100, Dave Chinner wrote:
> > >  	include/builddefs include/platform_defs.h
> > 
> > >  distclean: clean
> > > -	rm -f $(LDIRT)
> > > +	$(Q)rm -f $(DISTDIRT)
> > 
> > What does this have to do with the rest?
> 
> That's the "make clean doesn't cause configure to run again" fix.

Which is not related to the clean output build system..

I'm pretty sure we did this intentionally, but I'm open to a discussion
about changing it.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-14  6:51     ` Christoph Hellwig
@ 2010-01-14 10:11       ` Dave Chinner
  2010-01-17 11:55         ` Christoph Hellwig
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Chinner @ 2010-01-14 10:11 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs

On Thu, Jan 14, 2010 at 01:51:23AM -0500, Christoph Hellwig wrote:
> On Thu, Jan 14, 2010 at 09:30:01AM +1100, Dave Chinner wrote:
> > > >  	include/builddefs include/platform_defs.h
> > > 
> > > >  distclean: clean
> > > > -	rm -f $(LDIRT)
> > > > +	$(Q)rm -f $(DISTDIRT)
> > > 
> > > What does this have to do with the rest?
> > 
> > That's the "make clean doesn't cause configure to run again" fix.
> 
> Which is not related to the clean output build system..
> 
> I'm pretty sure we did this intentionally, but I'm open to a discussion
> about changing it.

It seems completely spurious to me - normal practice is to blow away
the config on a distclean, not a plain clean. And seeing as the
patch is about removing noise during the normal build, I figured
this qualified as a bug causing noise.

I can separate it out into another patch, but I'd really prefer that
make clean doesn't result in running configure again. Especially
considering the build dependencies are very broken so the only way
to guarantee a build catches all changes is to do 'make clean;
make'.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] xfsprogs: Make the compile output cleaner V2
  2010-01-14 10:11       ` Dave Chinner
@ 2010-01-17 11:55         ` Christoph Hellwig
  0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2010-01-17 11:55 UTC (permalink / raw)
  To: Dave Chinner; +Cc: Christoph Hellwig, xfs

On Thu, Jan 14, 2010 at 09:11:28PM +1100, Dave Chinner wrote:
> It seems completely spurious to me - normal practice is to blow away
> the config on a distclean, not a plain clean. And seeing as the
> patch is about removing noise during the normal build, I figured
> this qualified as a bug causing noise.
> 
> I can separate it out into another patch, but I'd really prefer that
> make clean doesn't result in running configure again. Especially
> considering the build dependencies are very broken so the only way
> to guarantee a build catches all changes is to do 'make clean;
> make'.

Looking at various other packages it seems like configure output
usually survives make clean indeed.  With that I agree with the change,
but it really should be a separate patch.


Reviewed-by: Christoph Hellwig <hch@lst.de>

For this one without that change, and I'll also approve the make clean
change when you send it.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-01-17 11:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 10:03 [PATCH] xfsprogs: Make the compile output cleaner V2 Dave Chinner
2010-01-13 14:50 ` Eric Sandeen
2010-01-13 22:08 ` Christoph Hellwig
2010-01-13 22:30   ` Dave Chinner
2010-01-14  6:51     ` Christoph Hellwig
2010-01-14 10:11       ` Dave Chinner
2010-01-17 11:55         ` Christoph Hellwig
2010-01-13 22:43   ` Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox