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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. SUBDIRS=slim
  20. lodel2_scripts_dir = $(datadir)/lodel2/scripts
  21. lodel2_scripts__DATA = create_instance mass_deploy
  22. CLEANFILES = create_instance mass_deploy mass_deploy.cfg
  23. EXTRA_DIST = create_instance.sh mass_deploy.sh
  24. lodel2conf_DATA = mass_deploy.cfg
  25. lodel2confdir=$(sysconfdir)/lodel2
  26. do_subst = sed -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g' \
  27. -e 's,\[@\]LODEL2_PROGSDIR\[@\],$(lodel2_scripts_dir),g' \
  28. -e 's,\[@\]LODEL2_CONFDIR\[@\],$(lodel2confdir),g'
  29. #There is clearly a way to factorise those rules
  30. mass_deploy: mass_deploy.sh
  31. $(do_subst) < $(srcdir)/mass_deploy.sh > mass_deploy
  32. chmod +x mass_deploy
  33. mass_deploy.cfg:
  34. echo -e "#Uncomment following lines replacing values by your own\n#MONGODB_ADMIN_USER='admin'\n#MONGODB_ADMIN_PASSWORD='pass'\n#Following configurations are optional\nMONGODB_DB_PREFIX='lodel2'\n#You can give only an host or a HOSTNAME:PORT\n#WARNING !!! : mass_deploy script does not forward MONGODB_HOST in instances\n#configurations\n#MONGODB_HOST=''" > mass_deploy.cfg
  35. create_instance: create_instance.sh
  36. $(do_subst) < $(srcdir)/create_instance.sh > create_instance
  37. chmod +x create_instance
  38. install-data-hook:
  39. chmod +x ${DESTDIR}$(datadir)/lodel2/scripts/*