[pulseaudio-discuss] [PATCH 2/7] build: Use silent rules for generating files

Maarten Bosmans mkbosmans at gmail.com
Wed Mar 9 01:00:21 PST 2011


---
 man/Makefile.am |    4 ++--
 src/Makefile.am |   20 ++++++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/man/Makefile.am b/man/Makefile.am
index 7793fe7..eca1fb9 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -36,7 +36,7 @@ noinst_DATA = \
 	default.pa.5.xml
 
 %.xml: %.xml.in Makefile
-	sed -e 's, at pulseconfdir\@,$(pulseconfdir),g' \
+	$(AM_V_GEN) sed -e 's, at pulseconfdir\@,$(pulseconfdir),g' \
 	    -e 's, at PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
             -e 's, at PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
 
@@ -66,7 +66,7 @@ CLEANFILES += \
 	$(dist_man_MANS)
 
 %: %.xml Makefile
-	perl $(srcdir)/xmltoman $< > $@ || rm -f $@
+	$(AM_V_GEN) perl $(srcdir)/xmltoman $< > $@ || rm -f $@
 
 endif
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 24e2f82..137b8f7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1857,23 +1857,23 @@ module_rygel_media_server_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
 CLEANFILES += esdcompat client.conf default.pa system.pa daemon.conf start-pulseaudio-x11 start-pulseaudio-kde daemon/pulseaudio.desktop daemon/pulseaudio-kde.desktop
 
 esdcompat: daemon/esdcompat.in Makefile
-	sed -e 's, at PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
+	$(AM_V_GEN) sed -e 's, at PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
 		-e 's, at PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
 		-e 's, at PA_BINARY\@,$(PA_BINARY),g' < $< > $@
-	chmod +x esdcompat
+	$(AM_V_at) chmod +x esdcompat
 
 start-pulseaudio-x11: daemon/start-pulseaudio-x11.in Makefile
-	sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
+	$(AM_V_GEN) sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
 		-e 's, at PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@
-	chmod +x start-pulseaudio-x11
+	$(AM_V_at) chmod +x start-pulseaudio-x11
 
 start-pulseaudio-kde: daemon/start-pulseaudio-kde.in Makefile
-	sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
+	$(AM_V_GEN) sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
 		-e 's, at PACTL_BINARY\@,$(bindir)/pactl,g' < $< > $@
-	chmod +x start-pulseaudio-kde
+	$(AM_V_at) chmod +x start-pulseaudio-kde
 
 client.conf: pulse/client.conf.in Makefile
-	sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' < $< > $@
+	$(AM_V_GEN) sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' < $< > $@
 
 if OS_IS_WIN32
 default.pa: daemon/default.pa.win32
@@ -1882,17 +1882,17 @@ system.pa: daemon/default.pa.win32
 	cp $< $@
 else
 default.pa: daemon/default.pa.in Makefile
-	sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
+	$(AM_V_GEN) sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
             -e 's, at PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
 	    -e 's, at PA_SOEXT\@,.so,g' < $< > $@
 system.pa: daemon/system.pa.in Makefile
-	sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
+	$(AM_V_GEN) sed -e 's, at PA_BINARY\@,$(PA_BINARY),g' \
             -e 's, at PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
 	    -e 's, at PA_SOEXT\@,.so,g' < $< > $@
 endif
 
 daemon.conf: daemon/daemon.conf.in Makefile
-	sed -e 's, at PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
+	$(AM_V_GEN) sed -e 's, at PA_DLSEARCHPATH\@,$(modlibexecdir),g' \
 		-e 's, at PA_DEFAULT_CONFIG_FILE\@,$(DEFAULT_CONFIG_DIR),g' < $< > $@
 
 install-exec-hook:
-- 
1.7.1




More information about the pulseaudio-discuss mailing list