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.4KB

123456789101112131415161718192021222324252627282930313233343536
  1. SUBDIRS=slim
  2. lodel2_scripts_dir = $(datadir)/lodel2/scripts
  3. lodel2_scripts__DATA = create_instance create_multisite mass_deploy
  4. CLEANFILES = create_instance mass_deploy mass_deploy.cfg
  5. EXTRA_DIST = create_instance.sh create_multisite.sh mass_deploy.sh
  6. lodel2conf_DATA = mass_deploy.cfg
  7. lodel2confdir=$(sysconfdir)/lodel2
  8. lodel2statedir=$(localstatedir)/lodel2
  9. do_subst = sed -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g' \
  10. -e 's,\[@\]LODEL2_PROGSDIR\[@\],$(lodel2_scripts_dir),g' \
  11. -e 's,\[@\]LODEL2_CONFDIR\[@\],$(lodel2confdir),g' \
  12. -e 's,\[@\]LODEL2_VARDIR\[@\],$(lodel2statedir),g'
  13. #There is clearly a way to factorise those rules
  14. mass_deploy: mass_deploy.sh
  15. $(do_subst) < $(srcdir)/mass_deploy.sh > mass_deploy
  16. chmod +x mass_deploy
  17. mass_deploy.cfg:
  18. 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
  19. create_instance: create_instance.sh
  20. $(do_subst) < $(srcdir)/create_instance.sh > create_instance
  21. chmod +x create_instance
  22. create_multisite: create_multisite.sh
  23. $(do_subst) < $(srcdir)/create_multisite.sh > create_multisite
  24. chmod +x create_multisite
  25. install-data-hook:
  26. chmod +x ${DESTDIR}$(datadir)/lodel2/scripts/*