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

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