instdat2.sh 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #! /bin/sh
  2. # Copyright (C) 2001-2017 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Test that installing under $exec_prefix is handled by install-exec.
  17. # Testing with headers for instance.
  18. . test-init.sh
  19. cat >Makefile.am << 'EOF'
  20. # User directories.
  21. inclexecdir = $(exec_prefix)/include
  22. inclexec_HEADERS = my-config.h
  23. incldatadir = $(prefix)/include
  24. incldata_HEADERS = my-data.h
  25. ## Standard directories: _DATA
  26. ## Commented out are invalid combinations.
  27. ##bin_DATA = data
  28. ##sbin_DATA = data
  29. ##libexec_DATA = data
  30. data_DATA = data
  31. sysconf_DATA = data
  32. localstate_DATA = data
  33. ##lib_DATA = data
  34. ##info_DATA = data
  35. ##man_DATA = data
  36. ##include_DATA = data
  37. ##oldinclude_DATA = data
  38. pkgdata_DATA = data
  39. ##pkglib_DATA = data
  40. ##pkginclude_DATA = data
  41. ## Standard directories: _SCRIPTS
  42. ## Commented out are invalid combinations.
  43. bin_SCRIPTS = script
  44. sbin_SCRIPTS = script
  45. libexec_SCRIPTS = script
  46. ##data_SCRIPTS = script
  47. ##sysconf_SCRIPTS = script
  48. ##localstate_SCRIPTS = script
  49. ##lib_SCRIPTS = script
  50. ##info_SCRIPTS = script
  51. ##man_SCRIPTS = script
  52. ##include_SCRIPTS = script
  53. ##oldinclude_SCRIPTS = script
  54. pkgdata_SCRIPTS = script
  55. ##pkglib_SCRIPTS = script
  56. ##pkginclude_SCRIPTS = script
  57. EOF
  58. $ACLOCAL
  59. $AUTOMAKE
  60. # install-SCRIPTS targets.
  61. sed -n '/^install-data-am/,/^ /p' Makefile.in > produced
  62. cat > expected <<'EOF'
  63. install-data-am: install-dataDATA install-incldataHEADERS \
  64. install-pkgdataDATA install-pkgdataSCRIPTS
  65. EOF
  66. diff expected produced
  67. # install-exec targets.
  68. sed -n '/^install-exec-am/,/^ /p' Makefile.in > produced
  69. cat > expected <<'EOF'
  70. install-exec-am: install-binSCRIPTS install-inclexecHEADERS \
  71. install-libexecSCRIPTS install-localstateDATA \
  72. EOF
  73. diff expected produced
  74. :