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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. SUBDIRS = lodel progs lodelsites
  2. EXTRA_DIST = runtest examples tests debian
  3. CLEANFILES = runtest
  4. lodel2_localstate_DATA =
  5. lodel2_localstatedir=$(localstatedir)/lodel2
  6. lodel2datadir=$(datadir)/lodel2
  7. install_model_dir = $(lodel2datadir)/install_model
  8. #python=/usr/bin/env python3
  9. python=@PYTHON@
  10. dyncode_filename='lodel/leapi/dyncode.py'
  11. docdir=${datarootdir}/doc/lodel2
  12. # Doxygen doc generation targets
  13. doxygen:
  14. test -z "@DOCOK@" && echo -e "\n\nUnable to generate documentation. See ./configure output for details\n\n" >&2 || make generate-doc
  15. generate-doc: clean doc_graphviz
  16. doxygen
  17. doc_graphviz:
  18. cd doc/img/graphviz; make
  19. do_subst = sed -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g'
  20. runtest: ./runtest.sh
  21. $(do_subst) < $(srcdir)/runtest.sh > runtest
  22. chmod +x runtest
  23. #Adding logdir creation on install
  24. install-data-hook:
  25. mkdir -p ${DESTDIR}$(lodel2_localstatedir); mkdir -p ${DESTDIR}$(docdir); cp README ${DESTDIR}$(docdir);
  26. #Making debian package
  27. deb: dist
  28. mkdir debian_package; tar -xvf ${PACKAGE}-${VERSION}.tar.gz -C ./debian_package; cd debian_package/${PACKAGE}-${VERSION}; dpkg-buildpackage -rfakeroot;
  29. # Test em update ( examples/em_test.pickle )
  30. em_test: em_test.py
  31. $(python) em_test.py
  32. # 23/11 Editoral model update
  33. em_simple: editorial_models/em_simple.py
  34. $(python) editorial_models/em_simple.py
  35. # generate leapi dynamic code
  36. dyncode: examples/em_test.pickle
  37. $(python) scripts/refreshdyn.py examples/em_test.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)"
  38. dyncode_simple: examples/em_simple.pickle
  39. $(python) scripts/refreshdyn.py examples/em_simple.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)"
  40. # run tests
  41. checks: runtest
  42. ./runtest -v
  43. unittest: checks
  44. #Cleaning documentation and dyncode
  45. clean-local: cleandoc
  46. -rm -vR doc/html doc/doxygen_sqlite3.db
  47. cleandoc:
  48. -rm -v $(dyncode_filename)
  49. #other cleans
  50. distclean-local:
  51. -rm -vR debian_package ${PACKAGE}-${VERSION}.tar.gz
  52. gitclean: distclean cleandoc
  53. -rm -vR autom4te.cache/ aclocal.m4 install-sh missing py-compile configure; find ./ -name Makefile.in |xargs rm -v
  54. .PHONY: cleandoc tests doc