changeset 11446:6d0f0ffb7658

Combine 4 Makefile rules.
author Bruno Haible <bruno@clisp.org>
date Thu, 02 Apr 2009 12:40:42 +0200
parents 66a365760f8b
children f41e8c185806
files ChangeLog Makefile
diffstat 2 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-02  Bruno Haible  <bruno@clisp.org>
+
+	* Makefile (info, html, dvi, pdf): Combine the rules.
+	Suggested by Jim Meyering.
+
 2009-04-01  Bruno Haible  <bruno@clisp.org>
 
 	* Makefile (info, html, dvi, pdf): New targets.
--- a/Makefile
+++ b/Makefile
@@ -9,14 +9,8 @@
 all:
 
 # Produce the documentation in readable form.
-info:
-	cd doc && $(MAKE) info
-html:
-	cd doc && $(MAKE) html
-dvi:
-	cd doc && $(MAKE) dvi && $(MAKE) mostlyclean
-pdf:
-	cd doc && $(MAKE) pdf && $(MAKE) mostlyclean
+info html dvi pdf:
+	cd doc && $(MAKE) $@ && $(MAKE) mostlyclean
 
 # Perform some platform independent checks on the gnulib code.
 check: