data.am 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. if %?INSTALL%
  14. include inst-vars.am
  15. endif %?INSTALL%
  16. ## ------------ ##
  17. ## Installing. ##
  18. ## ------------ ##
  19. if %?INSTALL%
  20. am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
  21. ?EXEC?.PHONY install-exec-am: install-%DIR%%PRIMARY%
  22. ?!EXEC?.PHONY install-data-am: install-%DIR%%PRIMARY%
  23. install-%DIR%%PRIMARY%: $(%DIR%_%PRIMARY%)
  24. @$(NORMAL_INSTALL)
  25. if %?BASE%
  26. ## Funny invocation because Makefile variable can be empty, leading to
  27. ## a syntax error in sh.
  28. @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
  29. if test -n "$$list"; then \
  30. echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
  31. $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
  32. fi; \
  33. for p in $$list; do \
  34. ## A file can be in the source directory or the build directory.
  35. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  36. ## If the _%PRIMARY% variable has an entry like foo/bar, install it as
  37. ## $(destdir)/bar, not $(destdir)/foo/bar. The user can make a
  38. ## new dir variable or use a nobase_ target for the latter case.
  39. echo "$$d$$p"; \
  40. done | $(am__base_list) | \
  41. while read files; do \
  42. echo " $(INSTALL_%ONE_PRIMARY%) $$files '$(DESTDIR)$(%NDIR%dir)'"; \
  43. $(INSTALL_%ONE_PRIMARY%) $$files "$(DESTDIR)$(%NDIR%dir)" || exit $$?; \
  44. done
  45. else !%?BASE%
  46. @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
  47. if test -n "$$list"; then \
  48. echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
  49. $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
  50. fi; \
  51. $(am__nobase_list) | while read dir files; do \
  52. xfiles=; for file in $$files; do \
  53. if test -f "$$file"; then xfiles="$$xfiles $$file"; \
  54. else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
  55. test -z "$$xfiles" || { \
  56. test "x$$dir" = x. || { \
  57. echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
  58. $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)/$$dir"; }; \
  59. echo " $(INSTALL_%ONE_PRIMARY%) $$xfiles '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
  60. $(INSTALL_%ONE_PRIMARY%) $$xfiles "$(DESTDIR)$(%NDIR%dir)/$$dir" || exit $$?; }; \
  61. done
  62. endif !%?BASE%
  63. endif %?INSTALL%
  64. ## -------------- ##
  65. ## Uninstalling. ##
  66. ## -------------- ##
  67. if %?INSTALL%
  68. .PHONY uninstall-am: uninstall-%DIR%%PRIMARY%
  69. uninstall-%DIR%%PRIMARY%:
  70. @$(NORMAL_UNINSTALL)
  71. @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
  72. ?BASE? files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  73. ?!BASE? $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
  74. dir='$(DESTDIR)$(%NDIR%dir)'; $(am__uninstall_files_from_dir)
  75. endif %?INSTALL%
  76. ## ---------- ##
  77. ## Cleaning. ##
  78. ## ---------- ##
  79. ## Nothing.
  80. ## -------------- ##
  81. ## Distributing. ##
  82. ## -------------- ##
  83. if %?DIST%
  84. DIST_COMMON += %DISTVAR%
  85. endif %?DIST%