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

12345678910111213141516171819202122232425262728293031323334353637383940
  1. bin_SCRIPTS = slim
  2. CLEANFILES = $(bin_SCRIPTS) slim_instances.json slim_instances_pid.json
  3. EXTRA_DIST = slim.py install_model emfile.pickle
  4. lodel2_scripts_dir = $(datadir)/lodel2/scripts
  5. lodel2datadir = $(datadir)/lodel2
  6. slimdatadir = $(lodel2datadir)/slim
  7. slimdata_DATA = emfile.pickle
  8. install_model_dir = $(lodel2datadir)/install_model
  9. install_model__DATA = install_model/loader.py \
  10. install_model/lodel_admin.py \
  11. install_model/Makefile
  12. slim_conf_model_dir = $(install_model_dir)/conf.d/
  13. slim_conf_model__DATA = install_model/conf.d/lodel2.ini
  14. slim_var__DATA = slim_instances.json slim_instances_pid.json
  15. slim_var_dir = $(localstatedir)/lodel2/slim/
  16. slim_instances.json:
  17. touch slim_instances.json
  18. slim_instances_pid.json:
  19. touch slim_instances_pid.json
  20. do_subst = sed -e 's,\[@\]LODEL2_PROGSDIR\[@\],$(lodel2_scripts_dir),g' \
  21. -e 's,\[@\]SLIM_DATADIR\[@\],$(slimdatadir),g' \
  22. -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g' \
  23. -e 's,\[@\]SLIM_VAR_DIR\[@\],$(slim_var_dir),g' \
  24. -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g'
  25. slim: slim.py
  26. $(do_subst) < $(srcdir)/slim.py > slim
  27. chmod +x slim
  28. install-data-hook:
  29. chmod +x ${DESTDIR}$(install_model_dir)/lodel_admin.py