summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2013-01-16 15:01:07 -0500
committerPaul Moore <pmoore@redhat.com>2013-01-16 15:01:07 -0500
commitce7bb153c6253b0a33beb1ddd1a7bf775c27c65d (patch)
treea5419a067b02d744b1c7cc5a179b410c1077e711
parent7f103093598d9c13eb9037e537969b146b6edf91 (diff)
downloadlibseccomp-ce7bb153c6253b0a33beb1ddd1a7bf775c27c65d.tar.gz
build: quiet the build INFO messages during verbose builds
The ">> INFO: ..." messages aren't needed in verbose builds. Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r--Makefile24
-rw-r--r--macros.mk3
-rw-r--r--src/Makefile2
3 files changed, 16 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 5f7aa9b..12ee82f 100644
--- a/Makefile
+++ b/Makefile
@@ -46,13 +46,13 @@ SUBDIRS_INSTALL = src include doc
all: $(SUBDIRS_BUILD)
$(CONFIGS): version_info
- @$(ECHO) ">> INFO: automatically generating configuration ..."
+ @$(ECHO_INFO) "automatically generating configuration ..."
@./configure
tarball: clean
@ver=$(VERSION_RELEASE); \
tarball=libseccomp-$$ver.tar.gz; \
- $(ECHO) ">> INFO: creating the tarball ../$$tarball"; \
+ $(ECHO_INFO) "creating the tarball ../$$tarball"; \
tmp_dir=$$(mktemp -d /tmp/libseccomp.XXXXX); \
rel_dir=$$tmp_dir/libseccomp-$$ver; \
$(MKDIR) $$rel_dir; \
@@ -63,7 +63,7 @@ tarball: clean
$(RM) -rf $$tmp_dir;
$(VERSION_HDR): version_info.mk
- @$(ECHO) ">> INFO: creating the version header file"
+ @$(ECHO_INFO) "creating the version header file"
@hdr="$(VERSION_HDR)"; \
$(ECHO) "/* automatically generated - do not edit */" > $$hdr; \
$(ECHO) "#ifndef _VERSION_H" >> $$hdr; \
@@ -72,40 +72,40 @@ $(VERSION_HDR): version_info.mk
$(ECHO) "#endif" >> $$hdr;
src: $(VERSION_HDR) $(CONFIGS)
- @$(ECHO) ">> INFO: building in directory $@/ ..."
+ @$(ECHO_INFO) "building in directory $@/ ..."
@$(MAKE) -C $@
tests: src
- @$(ECHO) ">> INFO: building in directory $@/ ..."
+ @$(ECHO_INFO) "building in directory $@/ ..."
@$(MAKE) -C $@
tools: src
- @$(ECHO) ">> INFO: building in directory $@/ ..."
+ @$(ECHO_INFO) "building in directory $@/ ..."
@$(MAKE) -C $@
install: $(SUBDIRS_BUILD)
- @$(ECHO) ">> INFO: installing in $(INSTALL_PREFIX) ..."
+ @$(ECHO_INFO) "installing in $(INSTALL_PREFIX) ..."
$(INSTALL_PC_MACRO) libseccomp.pc
@for dir in $(SUBDIRS_INSTALL); do \
- $(ECHO) ">> INFO: installing from $$dir/"; \
+ $(ECHO_INFO) "installing from $$dir/"; \
$(MAKE) -C $$dir install; \
done
ctags:
- @$(ECHO) ">> INFO: generating ctags for the project ..."
+ @$(ECHO_INFO) "generating ctags for the project ..."
@ctags -R *
cstags:
- @$(ECHO) ">> INFO: generating cscope tags for the project ..."
+ @$(ECHO_INFO) "generating cscope tags for the project ..."
@find -iname *.[ch] > cscope.files
@cscope -b -q -k
clean:
- @$(ECHO) ">> INFO: cleaning up libseccomp"
+ @$(ECHO_INFO) "cleaning up libseccomp"
@for dir in $(SUBDIRS_BUILD); do \
$(MAKE) -C $$dir clean; \
done
dist-clean: clean
- @$(ECHO) ">> INFO: removing the configuration files"
+ @$(ECHO_INFO) "removing the configuration files"
@$(RM) $(CONFIGS)
diff --git a/macros.mk b/macros.mk
index d85ab7b..f2b89cc 100644
--- a/macros.mk
+++ b/macros.mk
@@ -72,6 +72,9 @@ INSTALL ?= install
ifeq ($(V),0)
MAKE += --quiet --no-print-directory
+ ECHO_INFO ?= $(ECHO) ">> INFO:"
+else
+ ECHO_INFO ?= /bin/true || $(ECHO) ">> INFO:"
endif
#
diff --git a/src/Makefile b/src/Makefile
index f3a192c..8f4063e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -72,7 +72,7 @@ $(LIB_SHARED): $(OBJS)
$(LINK_LIB)
python: $(LIB_STATIC)
- @$(ECHO) ">> INFO: building in directory $@/ ..."
+ @$(ECHO_INFO) "building in directory $@/ ..."
@$(MAKE) -C $@
install: $(LIB_SHARED)