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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. SUBDIRS = lodel progs plugins
  2. EXTRA_DIST = plugins runtest examples tests runtest.sh 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. # generate leapi dynamic code
  33. dyncode: examples/em_test.pickle
  34. $(python) scripts/refreshdyn.py examples/em_test.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)"
  35. # run tests
  36. checks: runtest
  37. ./runtest -v
  38. unittest: checks
  39. #Cleaning documentation and dyncode
  40. clean-local: cleandoc
  41. -rm -vR doc/html doc/doxygen_sqlite3.db
  42. cleandoc:
  43. -rm -v $(dyncode_filename)
  44. #other cleans
  45. distclean-local:
  46. -rm -vR debian_package ${PACKAGE}-${VERSION}.tar.gz
  47. gitclean: distclean cleandoc
  48. -rm -vR autom4te.cache/ aclocal.m4 install-sh missing py-compile configure; find ./ -name Makefile.in |xargs rm -v
  49. .PHONY: cleandoc tests doc