Bez popisu
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.2KB

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