Makefile: Merge build-time reST copying
authorMichael Hanselmann <hansmi@google.com>
Wed, 5 Jan 2011 17:52:29 +0000 (18:52 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 6 Jan 2011 10:06:55 +0000 (11:06 +0100)
No need to copy this snippet around, “make” can work harder for us.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

Makefile.am

index f394187..c87288d 100644 (file)
@@ -246,23 +246,11 @@ doc/html/index.html: $(docrst) $(docpng) doc/conf.py configure.ac \
 
 doc/html: doc/html/index.html
 
-doc/news.rst: NEWS
-       set -e; \
-       { echo '.. This file is automatically updated at build time from $<.'; \
-         echo '.. Do not edit.'; \
-         echo; \
-         cat $<; \
-       } > $@
-
 doc/install-quick.rst: INSTALL
-       set -e; \
-       { echo '.. This file is automatically updated at build time from $<.'; \
-         echo '.. Do not edit.'; \
-         echo; \
-         cat $<; \
-       } > $@
-
+doc/news.rst: NEWS
 doc/upgrade.rst: UPGRADE
+
+doc/install-quick.rst doc/news.rst doc/upgrade.rst:
        set -e; \
        { echo '.. This file is automatically updated at build time from $<.'; \
          echo '.. Do not edit.'; \