Makefile.am 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #
  2. # Copyright (C) 1994-2018 Altair Engineering, Inc.
  3. # For more information, contact Altair at www.altair.com.
  4. #
  5. # This file is part of the PBS Professional ("PBS Pro") software.
  6. #
  7. # Open Source License Information:
  8. #
  9. # PBS Pro is free software. You can redistribute it and/or modify it under the
  10. # terms of the GNU Affero General Public License as published by the Free
  11. # Software Foundation, either version 3 of the License, or (at your option) any
  12. # later version.
  13. #
  14. # PBS Pro is distributed in the hope that it will be useful, but WITHOUT ANY
  15. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16. # FOR A PARTICULAR PURPOSE.
  17. # See the GNU Affero General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Affero General Public License
  20. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. #
  22. # Commercial License Information:
  23. #
  24. # For a copy of the commercial license terms and conditions,
  25. # go to: (http://www.pbspro.com/UserArea/agreement.html)
  26. # or contact the Altair Legal Department.
  27. #
  28. # Altair’s dual-license business model allows companies, individuals, and
  29. # organizations to create proprietary derivative works of PBS Pro and
  30. # distribute them - whether embedded or bundled with other software -
  31. # under a commercial license agreement.
  32. #
  33. # Use of Altair’s trademarks, including but not limited to "PBS™",
  34. # "PBS Professional®", and "PBS Pro™" and Altair’s logos is subject to Altair's
  35. # trademark licensing policies.
  36. #
  37. # making aptl installation in case it is enabled with configure
  38. # all directories for ptl install start with 'ptl_'
  39. if ENABLEPTL
  40. ptlpkg_bindir = ${ptl_prefix}/bin
  41. dist_ptlpkg_bin_SCRIPTS = $(wildcard $(srcdir)/bin/*)
  42. ptlpkg_pylib_topdir = ${ptl_prefix}/lib/python$(PYTHON_VERSION)/site-packages/ptl
  43. dist_ptlpkg_pylib_top_PYTHON = $(wildcard $(srcdir)/ptl/*.py)
  44. ptlpkg_pylib_libdir = $(ptlpkg_pylib_topdir)/lib
  45. dist_ptlpkg_pylib_lib_PYTHON = $(wildcard $(srcdir)/ptl/lib/*.py)
  46. ptlpkg_pylib_utilsdir = $(ptlpkg_pylib_topdir)/utils
  47. dist_ptlpkg_pylib_utils_PYTHON = $(wildcard $(srcdir)/ptl/utils/*.py)
  48. ptlpkg_pylib_pluginsdir = $(ptlpkg_pylib_utilsdir)/plugins
  49. dist_ptlpkg_pylib_plugins_PYTHON = $(wildcard $(srcdir)/ptl/utils/plugins/*.py)
  50. sysprofiledir = /etc/profile.d
  51. dist_sysprofile_DATA = \
  52. ptl.csh \
  53. ptl.sh
  54. endif
  55. ptlmoduledir = $(exec_prefix)/unsupported/fw/ptl
  56. ptlbindir = $(exec_prefix)/unsupported/fw/bin
  57. dist_ptlbin_SCRIPTS = \
  58. bin/pbs_stat \
  59. bin/pbs_loganalyzer \
  60. bin/pbs_snapshot
  61. dist_ptlmodule_PYTHON = ptl/__init__.py
  62. ptlmodulelibdir = $(ptlmoduledir)/lib
  63. dist_ptlmodulelib_PYTHON = \
  64. ptl/lib/pbs_api_to_cli.py \
  65. ptl/lib/pbs_ifl_mock.py \
  66. ptl/lib/pbs_testlib.py \
  67. ptl/lib/__init__.py
  68. ptlmoduleutilsdir = $(ptlmoduledir)/utils
  69. dist_ptlmoduleutils_PYTHON = \
  70. ptl/utils/pbs_procutils.py \
  71. ptl/utils/pbs_dshutils.py \
  72. ptl/utils/pbs_covutils.py \
  73. ptl/utils/pbs_cliutils.py \
  74. ptl/utils/pbs_logutils.py \
  75. ptl/utils/pbs_testsuite.py \
  76. ptl/utils/pbs_fileutils.py \
  77. ptl/utils/pbs_anonutils.py \
  78. ptl/utils/pbs_snaputils.py \
  79. ptl/utils/__init__.py
  80. ptlmoduleutilspluginsdir = $(ptlmoduleutilsdir)/plugins
  81. dist_ptlmoduleutilsplugins_PYTHON = \
  82. ptl/utils/plugins/ptl_test_tags.py \
  83. ptl/utils/plugins/ptl_test_loader.py \
  84. ptl/utils/plugins/ptl_test_db.py \
  85. ptl/utils/plugins/ptl_test_info.py \
  86. ptl/utils/plugins/ptl_test_runner.py \
  87. ptl/utils/plugins/ptl_test_data.py \
  88. ptl/utils/plugins/__init__.py
  89. install-data-hook:
  90. cd $(DESTDIR)$(ptlbindir) && \
  91. mv pbs_stat pbs_stat.py && \
  92. mv pbs_loganalyzer pbs_loganalyzer.py && \
  93. mv pbs_snapshot pbs_snapshot.py
  94. uninstall-hook:
  95. cd $(DESTDIR)$(ptlbindir) && \
  96. rm -f pbs_stat.py pbs_loganalyzer.py pbs_snapshot.py