install.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 2001-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. ## ----------------------------------------- ##
  14. ## installdirs -- Creating the installdirs. ##
  15. ## ----------------------------------------- ##
  16. ## The reason we loop over %am__installdirs% (instead of simply running
  17. ## $(MKDIR_P) %am__installdirs%) is that directories variable such as
  18. ## "$(DESTDIR)$(mydir)" can potentially expand to "" if $(mydir) is
  19. ## conditionally defined. BTW, those directories are quoted in order
  20. ## to support installation paths with spaces.
  21. if %?SUBDIRS%
  22. .PHONY: installdirs installdirs-am
  23. RECURSIVE_TARGETS += installdirs-recursive
  24. installdirs: installdirs-recursive
  25. installdirs-am:%installdirs-local%
  26. ?am__installdirs? for dir in %am__installdirs%; do \
  27. ?am__installdirs? test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  28. ?am__installdirs? done
  29. else !%?SUBDIRS%
  30. .PHONY: installdirs
  31. installdirs:%installdirs-local%
  32. ?am__installdirs? for dir in %am__installdirs%; do \
  33. ?am__installdirs? test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  34. ?am__installdirs? done
  35. endif !%?SUBDIRS%
  36. ## ----------------- ##
  37. ## Install targets. ##
  38. ## ----------------- ##
  39. .PHONY: install install-exec install-data uninstall
  40. .PHONY: install-exec-am install-data-am uninstall-am
  41. if %?SUBDIRS%
  42. RECURSIVE_TARGETS += install-data-recursive install-exec-recursive \
  43. install-recursive uninstall-recursive
  44. install:%maybe_BUILT_SOURCES% install-recursive
  45. install-exec: install-exec-recursive
  46. install-data: install-data-recursive
  47. uninstall: uninstall-recursive
  48. else !%?SUBDIRS%
  49. install:%maybe_BUILT_SOURCES% install-am
  50. install-exec: install-exec-am
  51. install-data: install-data-am
  52. uninstall: uninstall-am
  53. endif !%?SUBDIRS%
  54. if %?maybe_BUILT_SOURCES%
  55. .MAKE: install
  56. endif %?maybe_BUILT_SOURCES%
  57. .MAKE .PHONY: install-am
  58. install-am: all-am
  59. @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  60. .PHONY: installcheck
  61. ?SUBDIRS?installcheck: installcheck-recursive
  62. ?!SUBDIRS?installcheck: installcheck-am
  63. ?!SUBDIRS?.PHONY: installcheck-am
  64. ?!SUBDIRS?installcheck-am:
  65. ## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
  66. ## in subdirectories, so never set it to a value relative to the top
  67. ## directory.
  68. .MAKE .PHONY: install-strip
  69. install-strip:
  70. ## Beware that there are two variables used to install programs:
  71. ## INSTALL_PROGRAM is used for ordinary *_PROGRAMS
  72. ## install_sh_PROGRAM is used for nobase_*_PROGRAMS (because install-sh
  73. ## creates directories)
  74. ## It's OK to override both with INSTALL_STRIP_PROGRAM, because
  75. ## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rationale).
  76. ##
  77. ## Use double quotes for the *_PROGRAM settings because we might need to
  78. ## interpolate some backquotes at runtime.
  79. ##
  80. ## The case for empty $(STRIP) is separate so that it is quoted correctly for
  81. ## multiple words, but does not expand to an empty words if STRIP is empty.
  82. if test -z '$(STRIP)'; then \
  83. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  84. install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  85. install; \
  86. else \
  87. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  88. install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  89. "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
  90. fi