2
0

rm-f-without-args.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Summary
  2. -------
  3. POSIX will say in a future version that calling "rm -f" with no argument
  4. is OK; and this sensible behaviour seem to be already very widespread in
  5. "the wild" (and possibly lacking only on those systems that are well on
  6. their way to obsolescence).
  7. Se we'd like to simplify several automake-generated "cleaning" rules
  8. accordingly, to get rid of the awful idiom:
  9. test -z "$(VAR)" || rm -f $(VAR)
  10. See automake bug#10828.
  11. For Automake 1.14 (DONE)
  12. ------------------------
  13. Add a temporary "probe check" in AM_INIT_AUTOMAKE that verifies that
  14. the no-args "rm -f" usage is supported on the system configure is
  15. being run on; complain loudly if this is not the case, and tell the
  16. user to report the situation to us.
  17. For Automake 2.0
  18. ----------------
  19. Make any failure in the configure-time probe check introduced by the
  20. previous point fatal; and in case of failure, also suggest to the user
  21. to install an older version of GNU coreutils to work around the
  22. limitation of his system (this version should be old enough not to
  23. be bootstrapped with Automake 2.0, otherwise the user will face a
  24. bootstrapping catch-22).
  25. In all our recipes, start assuming "rm -f" with no argument is OK;
  26. simplify and de-uglify the recipes accordingly.
  27. For Automake 3.0
  28. ----------------
  29. Remove the runtime probe altogether.