No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # This file is part of Lodel 2 (https://github.com/OpenEdition)
  3. #
  4. # Copyright (C) 2015-2017 Cléo UMS-3287
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU Affero General Public License as published
  8. # by the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU Affero General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Affero General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. bin_SCRIPTS = slim
  20. CLEANFILES = $(bin_SCRIPTS) slim_instances.json slim_instances_pid.json
  21. EXTRA_DIST = slim.py install_model emfile.pickle
  22. lodel2_scripts_dir = $(datadir)/lodel2/scripts
  23. lodel2datadir = $(datadir)/lodel2
  24. slimdatadir = $(lodel2datadir)/slim
  25. slimdata_DATA = emfile.pickle
  26. install_model_dir = $(lodel2datadir)/install_model
  27. install_model__DATA = install_model/loader.py \
  28. install_model/lodel_admin.py \
  29. install_model/Makefile
  30. slim_conf_model_dir = $(install_model_dir)/conf.d/
  31. slim_conf_model__DATA = install_model/conf.d/lodel2.ini
  32. slim_var__DATA = slim_instances.json slim_instances_pid.json
  33. slim_var_dir = $(localstatedir)/lodel2/slim/
  34. slim_instances.json:
  35. touch slim_instances.json
  36. slim_instances_pid.json:
  37. touch slim_instances_pid.json
  38. do_subst = sed -e 's,\[@\]LODEL2_PROGSDIR\[@\],$(lodel2_scripts_dir),g' \
  39. -e 's,\[@\]SLIM_DATADIR\[@\],$(slimdatadir),g' \
  40. -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g' \
  41. -e 's,\[@\]SLIM_VAR_DIR\[@\],$(slim_var_dir),g' \
  42. -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g'
  43. slim: slim.py
  44. $(do_subst) < $(srcdir)/slim.py > slim
  45. chmod +x slim
  46. install-data-hook:
  47. chmod +x ${DESTDIR}$(install_model_dir)/lodel_admin.py