diff options
author | Måns Rullgård <mans@mansr.com> | 2010-03-06 17:14:19 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-03-06 17:14:19 +0000 |
commit | 63611f31e89c1f1dd19f325ec20ca442841e084b (patch) | |
tree | 7348e2803c44839eaccbd783fab083c5229c7a8e /common.mak | |
parent | 34512bca0e0b987dc3abd5a79f232f7d33194f4c (diff) | |
download | ffmpeg-63611f31e89c1f1dd19f325ec20ca442841e084b.tar.gz |
Prettify make output
This gives brief messages from make by default. For full command
echoing, add V=1 to make command line.
Originally committed as revision 22244 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/common.mak b/common.mak index 5420c7d9fb..c9e862f37a 100644 --- a/common.mak +++ b/common.mak @@ -17,6 +17,18 @@ else BUILD_ROOT_REL = .. endif +ifndef V +Q = @ +ECHO = printf "$(1)\t%s\n" $(2) +BRIEF = CC AS YASM AR LD HOSTCC RANLIB STRIP CP +SILENT = CCDEP ASDEP YASMDEP RM +MSG = $@ +$(foreach VAR,$(BRIEF), \ + $(eval $(VAR) = @$$(call ECHO,$(VAR),$$(MSG)); $($(VAR)))) +$(foreach VAR,$(SILENT),$(eval $(VAR) = @$($(VAR)))) +$(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_DIR)/%=%)); $(INSTALL)) +endif + ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale CPPFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(CPPFLAGS) @@ -36,7 +48,7 @@ CFLAGS += $(ECFLAGS) %$(EXESUF): %.c %.ver: %.v - sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@ + $(Q)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@ SVN_ENTRIES = $(SRC_PATH_BARE)/.svn/entries ifeq ($(wildcard $(SVN_ENTRIES)),$(SVN_ENTRIES)) |