aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-24 08:34:44 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-02-24 08:34:44 +0100
commit7aa51ea118d4d341b4eef861871c108eec58e08f (patch)
treec7b6d9f2b360f990ba05c027621cbff94697f92f
parent46d4f2211104a4e908084d948a6328331725bf1c (diff)
Makefile.am: turn the build less verbose by default
When V=0, suppress: - make entering/leaving messages - some scripting logic called on a few makefiles. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--Makefile.am2
-rw-r--r--utils/libcecutil/Makefile.am2
-rw-r--r--utils/media-ctl/Makefile.am4
-rw-r--r--utils/qvidcap/Makefile.am2
-rw-r--r--utils/v4l2-ctl/Makefile.am4
5 files changed, 7 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 3237ab49..7fb443ab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,6 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
+AM_MAKEFLAGS = $(word 1, $(subst 1, -w, $(filter 1, $(V))) --no-print-directory)
SUBDIRS = v4l-utils-po libdvbv5-po lib
@@ -13,4 +14,3 @@ EXTRA_DIST = android-config.h sync-with-kernel.sh bootstrap.sh \
TODO.libdvbv5 doc/libdvbv5-index.doc
include $(top_srcdir)/aminclude.am
-
diff --git a/utils/libcecutil/Makefile.am b/utils/libcecutil/Makefile.am
index f2b6e8ba..d2c7ddcc 100644
--- a/utils/libcecutil/Makefile.am
+++ b/utils/libcecutil/Makefile.am
@@ -16,7 +16,7 @@ $(CEC_GEN_HDRS): gen.intermediate ;
.INTERMEDIATE: gen.intermediate
gen.intermediate: cec-gen.pl $(CEC_GEN_PREREQS)
- $(top_srcdir)/utils/libcecutil/cec-gen.pl $(CEC_GEN_PREREQS)
+ $(AM_V_GEN) $(top_srcdir)/utils/libcecutil/cec-gen.pl $(CEC_GEN_PREREQS)
clean-local:
-rm -vf $(CEC_GEN_HDRS)
diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am
index 860e6f5a..c48c8d62 100644
--- a/utils/media-ctl/Makefile.am
+++ b/utils/media-ctl/Makefile.am
@@ -5,11 +5,11 @@ libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS)
libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS)
media-bus-format-names.h: ../../include/linux/media-bus-format.h
- sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*FMT_//; /FIXED/ d; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;' \
+ $(AM_V_GEN) sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*FMT_//; /FIXED/ d; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;' \
< $< > $@
media-bus-format-codes.h: ../../include/linux/media-bus-format.h
- sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*#define //; /FIXED/ d; s/\t.*//; s/.*/ &,/;' \
+ $(AM_V_GEN) sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*#define //; /FIXED/ d; s/\t.*//; s/.*/ &,/;' \
< $< > $@
BUILT_SOURCES = media-bus-format-names.h media-bus-format-codes.h
diff --git a/utils/qvidcap/Makefile.am b/utils/qvidcap/Makefile.am
index 66038796..9e873ca1 100644
--- a/utils/qvidcap/Makefile.am
+++ b/utils/qvidcap/Makefile.am
@@ -22,7 +22,7 @@ clean-local:
-rm -vf moc_*.cpp qrc_*.cpp qrc_*.o ui_*.h v4l2-convert.h formats.h
v4l2-convert.h: v4l2-convert.glsl v4l2-convert.pl
- perl \$(top_srcdir)/utils/qvidcap/v4l2-convert.pl \$(top_srcdir)/utils/qvidcap/v4l2-convert.glsl >$@
+ $(AM_V_GEN) perl \$(top_srcdir)/utils/qvidcap/v4l2-convert.pl \$(top_srcdir)/utils/qvidcap/v4l2-convert.glsl >$@
paint.cpp: v4l2-convert.h
diff --git a/utils/v4l2-ctl/Makefile.am b/utils/v4l2-ctl/Makefile.am
index 2a59c968..55d234cf 100644
--- a/utils/v4l2-ctl/Makefile.am
+++ b/utils/v4l2-ctl/Makefile.am
@@ -17,7 +17,7 @@ v4l2_ctl_SOURCES = v4l2-ctl.cpp v4l2-ctl.h v4l2-ctl-common.cpp v4l2-ctl-tuner.cp
v4l2_ctl_CPPFLAGS = -I$(top_srcdir)/utils/common $(GIT_COMMIT_CNT)
media-bus-format-names.h: $(top_srcdir)/include/linux/media-bus-format.h
- sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*FMT_//; /FIXED/ d; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;' \
+ $(AM_V_GEN) sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*FMT_//; /FIXED/ d; s/\t.*//; s/.*/{ \"&\", MEDIA_BUS_FMT_& },/;' \
< $< > $@
BUILT_SOURCES = media-bus-format-names.h
@@ -36,7 +36,7 @@ endif
nodist_v4l2_ctl_32_SOURCES = v4l2-ctl-32.c
v4l2-ctl-32$(EXEEXT): $(addprefix $(top_srcdir)/utils/v4l2-ctl/,$(v4l2_ctl_SOURCES)) media-bus-format-names.h
- cat $(addprefix $(top_srcdir)/utils/v4l2-ctl/,$(filter %.c,$(v4l2_ctl_SOURCES))) >$@.c
+ $(AM_V_GEN) cat $(addprefix $(top_srcdir)/utils/v4l2-ctl/,$(filter %.c,$(v4l2_ctl_SOURCES))) >$@.c
$(COMPILE) -static -m32 -DNO_LIBV4L2 -c -I$(top_srcdir) -I$(top_srcdir)/include $(v4l2_ctl_CPPFLAGS) $@.c
$(CXXCOMPILE) -static -m32 -DNO_LIBV4L2 -o $@ -I$(top_srcdir) -I$(top_srcdir)/include $(v4l2_ctl_CPPFLAGS) $(addprefix $(top_srcdir)/utils/v4l2-ctl/,$(filter %.cpp,$(v4l2_ctl_SOURCES))) $@.o
rm -f $@.c $@.o

Privacy Policy