[FFmpeg-cvslog] r22401 - in trunk: common.mak libavcodec/Makefile

mru subversion
Tue Mar 9 16:56:17 CET 2010


Author: mru
Date: Tue Mar  9 16:56:16 2010
New Revision: 22401

Log:
Prettify make output when generating headers

Modified:
   trunk/common.mak
   trunk/libavcodec/Makefile

Modified: trunk/common.mak
==============================================================================
--- trunk/common.mak	Tue Mar  9 16:19:23 2010	(r22400)
+++ trunk/common.mak	Tue Mar  9 16:56:16 2010	(r22401)
@@ -24,6 +24,7 @@ ECHO   = printf "$(1)\t%s\n" $(2)
 BRIEF  = CC AS YASM AR LD HOSTCC RANLIB STRIP CP
 SILENT = DEPCC YASMDEP RM
 MSG    = $@
+G      = @$(call ECHO,GEN,$@);
 $(foreach VAR,$(BRIEF), \
     $(eval $(VAR) = @$$(call ECHO,$(VAR),$$(MSG)); $($(VAR))))
 $(foreach VAR,$(SILENT),$(eval $(VAR) = @$($(VAR))))
@@ -57,7 +58,7 @@ $(BUILD_ROOT_REL)/version.h: $(SVN_ENTRI
 endif
 
 $(BUILD_ROOT_REL)/version.h: $(SRC_PATH_BARE)/version.sh config.mak
-	$< $(SRC_PATH) $@ $(EXTRA_VERSION)
+	$(G)$< $(SRC_PATH) $@ $(EXTRA_VERSION)
 
 install: install-libs install-headers
 install-libs: install-libs-yes

Modified: trunk/libavcodec/Makefile
==============================================================================
--- trunk/libavcodec/Makefile	Tue Mar  9 16:19:23 2010	(r22400)
+++ trunk/libavcodec/Makefile	Tue Mar  9 16:56:16 2010	(r22401)
@@ -736,10 +736,10 @@ include $(SUBDIR)../subdir.mak
 $(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o
 
 $(SUBDIR)cos_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF)
-	./$< > $@
+	$(G)./$< > $@
 
 $(SUBDIR)sin_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF)
-	./$< sin > $@
+	$(G)./$< sin > $@
 
 ifdef CONFIG_MPEGAUDIO_HP
 $(SUBDIR)mpegaudio_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DFRAC_BITS=23
@@ -753,7 +753,7 @@ $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBD
 	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS)
 
 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF)
-	./$< > $@
+	$(G)./$< > $@
 
 ifdef CONFIG_HARDCODED_TABLES
 $(SUBDIR)mdct.o: $(SUBDIR)mdct_tables.h



More information about the ffmpeg-cvslog mailing list