Combine 4 Makefile rules.
authorBruno Haible <bruno@clisp.org>
Thu, 2 Apr 2009 10:40:42 +0000 (12:40 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 2 Apr 2009 10:40:42 +0000 (12:40 +0200)
ChangeLog
Makefile

index 1f341e5..10228b5 100644 (file)
--- 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.
index f6cd61b..acdb23d 100644 (file)
--- 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: