clean.am 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 1994-2017 Free Software Foundation, Inc.
  3. ## This program is free software; you can redistribute it and/or modify
  4. ## it under the terms of the GNU General Public License as published by
  5. ## the Free Software Foundation; either version 2, or (at your option)
  6. ## any later version.
  7. ## This program is distributed in the hope that it will be useful,
  8. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. ## GNU General Public License for more details.
  11. ## You should have received a copy of the GNU General Public License
  12. ## along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ## We must test each macro because it might be empty, and an empty "rm
  14. ## -rf" command looks disturbing. Also, the Solaris 2.4 "rm" will
  15. ## return an error if there are no arguments other than "-f".
  16. mostlyclean-am: mostlyclean-generic
  17. mostlyclean-generic:
  18. %MOSTLYCLEAN_RMS%
  19. clean-am: clean-generic mostlyclean-am
  20. clean-generic:
  21. %CLEAN_RMS%
  22. distclean-am: distclean-generic clean-am
  23. distclean-generic:
  24. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  25. -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  26. %DISTCLEAN_RMS%
  27. ## Makefiles and their dependencies cannot be cleaned by
  28. ## an -am dependency, because that would prevent other distclean
  29. ## dependencies from calling make recursively. (The multilib
  30. ## cleaning rules do this.)
  31. ##
  32. ## If you change distclean here, you probably also want to change
  33. ## maintainer-clean below.
  34. distclean:
  35. -rm -f %MAKEFILE%
  36. maintainer-clean-am: maintainer-clean-generic distclean-am
  37. maintainer-clean-generic:
  38. ## FIXME: shouldn't we really print these messages before running
  39. ## the dependencies?
  40. @echo "This command is intended for maintainers to use"
  41. @echo "it deletes files that may require special tools to rebuild."
  42. %MAINTAINER_CLEAN_RMS%
  43. ## See comment for distclean.
  44. maintainer-clean:
  45. -rm -f %MAKEFILE%
  46. .PHONY: clean mostlyclean distclean maintainer-clean \
  47. clean-generic mostlyclean-generic distclean-generic maintainer-clean-generic
  48. ?!SUBDIRS?clean: clean-am
  49. ?!SUBDIRS?distclean: distclean-am
  50. ?!SUBDIRS?mostlyclean: mostlyclean-am
  51. ?!SUBDIRS?maintainer-clean: maintainer-clean-am