* automake.in (handle_texinfo): No longer hard code the clean
authorAkim Demaille <akim@epita.fr>
Mon, 5 Feb 2001 09:11:10 +0000 (09:11 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 5 Feb 2001 09:11:10 +0000 (09:11 +0000)
targets.
(texinfos.am): Include them.

ChangeLog
Makefile.in
automake.in
lib/am/texinfos.am
texinfos.am

index 6156edb..b9a815a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2001-02-05  Akim Demaille  <akim@epita.fr>
 
+       * automake.in (handle_texinfo): No longer hard code the clean
+       targets.
+       (texinfos.am): Include them.
+
+2001-02-05  Akim Demaille  <akim@epita.fr>
+
        * Makefile.am (perl4-check): Remove, we now require Perl 5.
        (maintainer-check): Don't be silent when you find a problem, and
        actually, even specify the locations.
index bb82edb..8c4530b 100644 (file)
@@ -307,12 +307,9 @@ mostlyclean-aminfo:
          automake.tps automake.vr automake.vrs automake.op automake.tr \
          automake.cv automake.cn automake.cm automake.ov
 
-clean-aminfo:
-
-distclean-aminfo:
-
 maintainer-clean-aminfo:
-       cd $(srcdir) && for i in $(INFO_DEPS); do \
+       cd $(srcdir) && \
+       for i in $(INFO_DEPS); do \
          rm -f $$i; \
          if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
            rm -f $$i-[0-9]*; \
@@ -616,12 +613,13 @@ install-exec-am install-exec-recursive install-info-am \
 install-recursive install-strip installcheck installcheck-am \
 installcheck-local installcheck-recursive installdirs installdirs-am \
 installdirs-recursive maintainer-clean maintainer-clean-aminfo \
-maintainer-clean-generic maintainer-clean-recursive \
-maintainer-clean-tags maintainer-clean-vti mostlyclean \
-mostlyclean-aminfo mostlyclean-generic mostlyclean-recursive \
-mostlyclean-tags mostlyclean-vti tags tags-recursive uninstall \
-uninstall-am uninstall-binSCRIPTS uninstall-dist_pkgdataDATA \
-uninstall-dist_scriptDATA uninstall-info uninstall-recursive
+maintainer-clean-aminfo maintainer-clean-generic \
+maintainer-clean-recursive maintainer-clean-tags maintainer-clean-vti \
+mostlyclean mostlyclean-aminfo mostlyclean-aminfo mostlyclean-generic \
+mostlyclean-recursive mostlyclean-tags mostlyclean-vti tags \
+tags-recursive uninstall uninstall-am uninstall-binSCRIPTS \
+uninstall-dist_pkgdataDATA uninstall-dist_scriptDATA uninstall-info \
+uninstall-recursive
 
 
 install-data-hook:
index 1a6b4ef..40a4606 100755 (executable)
@@ -2386,26 +2386,14 @@ sub handle_texinfo
         $texinfodir = '$(srcdir)';
        $need_texi_file = 1;
     }
-    $xform .= &transform ('TEXINFODIR' => $texinfodir);
+    $xform .= &transform ('TEXINFODIR' => $texinfodir,
+                         'TEXICLEAN' => &pretty_print_internal ("\t-rm -f",
+                                                                "\t  ",
+                                                                @texi_cleans));
 
     $output_rules .= &file_contents ('texinfos', $xform);
     push (@dist_targets, 'dist-info');
 
-    # How to clean.  The funny name is due to --cygnus influence; in
-    # Cygnus mode, `clean-info' is a target that users can use.
-    $output_rules .= "\nmostlyclean-aminfo:\n";
-    &pretty_print_rule ("\t-rm -f", "\t  ", @texi_cleans);
-    $output_rules .= ("\nclean-aminfo:\n\ndistclean-aminfo:\n\n"
-                     . "maintainer-clean-aminfo:\n\t"
-                     # Eww.  But how else can we find all the output
-                     # files from makeinfo?
-                     . ($cygnus_mode ? '' : 'cd $(srcdir) && ')
-                     . 'for i in $(INFO_DEPS); do' . " \\\n"
-                     . "\t" . '  rm -f $$i;' . " \\\n"
-                     . "\t" . '  if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then' . " \\\n"
-                     . "\t" . '    rm -f $$i-[0-9]*;' . " \\\n"
-                     . "\t" . '  fi;' . " \\\n"
-                     . "\tdone\n");
     &push_phony_cleaners ('aminfo');
     if ($cygnus_mode)
     {
index 9414bad..583b3b5 100644 (file)
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000
+## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 ## Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
@@ -209,3 +209,25 @@ CYGNUS       if test -f $$base; then d=.; else d=$(srcdir); fi; \
        done
 
 .PHONY: install-info-am uninstall-info
+
+
+## How to clean.  The funny name is due to --cygnus influence; in
+## Cygnus mode, `clean-info' is a target that users can use.
+
+.PHONY: mostlyclean-aminfo
+mostlyclean-aminfo:
+@TEXICLEAN@
+
+.PHONY: maintainer-clean-aminfo
+maintainer-clean-aminfo:
+## Eww.  But how else can we find all the output files from makeinfo?
+NOTCYGNUS      cd $(srcdir) && \
+       for i in $(INFO_DEPS); do \
+         rm -f $$i; \
+         if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
+           rm -f $$i-[0-9]*; \
+         fi; \
+       done
+
+CYGNUS.PHONY: clean-info
+CYGNUSclean-info: mostlyclean-aminfo
index 9414bad..583b3b5 100644 (file)
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000
+## Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 ## Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
@@ -209,3 +209,25 @@ CYGNUS       if test -f $$base; then d=.; else d=$(srcdir); fi; \
        done
 
 .PHONY: install-info-am uninstall-info
+
+
+## How to clean.  The funny name is due to --cygnus influence; in
+## Cygnus mode, `clean-info' is a target that users can use.
+
+.PHONY: mostlyclean-aminfo
+mostlyclean-aminfo:
+@TEXICLEAN@
+
+.PHONY: maintainer-clean-aminfo
+maintainer-clean-aminfo:
+## Eww.  But how else can we find all the output files from makeinfo?
+NOTCYGNUS      cd $(srcdir) && \
+       for i in $(INFO_DEPS); do \
+         rm -f $$i; \
+         if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
+           rm -f $$i-[0-9]*; \
+         fi; \
+       done
+
+CYGNUS.PHONY: clean-info
+CYGNUSclean-info: mostlyclean-aminfo