[vlc-devel] commit: Silent rule for vlc_about.h ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 31 12:01:11 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 31 13:00:59 2010 +0200| [731544cd4d4ddf0a01cfcc2f855d256ec834ff6b] | committer: Rémi Denis-Courmont
Silent rule for vlc_about.h
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=731544cd4d4ddf0a01cfcc2f855d256ec834ff6b
---
src/Makefile.am | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 87ddcf8..c4c86fc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -128,22 +128,21 @@ noinst_HEADERS = \
$(NULL)
../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
- rm -f -- "$@.tmp"
- mkdir -p -- ../include
- echo "/* Automatically generated file - DO NOT EDIT */" > "$@.tmp"
- echo "static const char psz_license[] =" >> "$@.tmp"
- sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" >> "$@.tmp"
- echo ";" >> "$@.tmp"
- echo "static const char psz_thanks[] =" >> "$@.tmp"
+ $(AM_V_at)rm -f -- "$@.tmp"
+ $(AM_V_at)mkdir -p -- ../include
+ $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
+ echo "static const char psz_license[] =" && \
+ sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
+ echo ";" && \
+ echo "static const char psz_thanks[] =" && \
sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
- "$(top_srcdir)/THANKS" >> "$@.tmp"
- echo ";" >> "$@.tmp"
- echo "static const char psz_authors[] =" >> "$@.tmp"
+ "$(top_srcdir)/THANKS" && \
+ echo ";" && \
+ echo "static const char psz_authors[] =" && \
sed -n '/^N: /{;s///;s/"/\\"/g;s/^.*$$/\"&\\n\"/;p;}' \
- "$(top_srcdir)/AUTHORS" >> "$@.tmp"
- echo ";" >> "$@.tmp"
-
- mv -f -- "$@.tmp" "$@"
+ "$(top_srcdir)/AUTHORS" && \
+ echo ";") >> "$@.tmp"
+ $(AM_V_at)mv -f -- "$@.tmp" "$@"
###############################################################################
# pkg-config integration
More information about the vlc-devel
mailing list