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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. SUBDIRS = lodel progs
  2. EXTRA_DIST = runtest examples tests debian Makefile-common.am.inc
  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;\
  29. tar -xvf ${PACKAGE}-${VERSION}.tar.gz -C ./debian_package;\
  30. cd debian_package/${PACKAGE}-${VERSION};\
  31. dpkg-buildpackage -rfakeroot;
  32. # Test em update ( examples/em_test.pickle )
  33. em_test: em_test.py
  34. $(python) em_test.py
  35. # Test em update ( examples/em_test.pickle )
  36. em_simple: editorial_models/em_simple.py
  37. $(python) editorial_models/em_simple.py
  38. # generate leapi dynamic code
  39. dyncode: examples/em_test.pickle
  40. $(python) scripts/refreshdyn.py examples/em_test.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)"
  41. # generate leapi dynamic code
  42. dyncode_simple: examples/em_simple.pickle
  43. $(python) scripts/refreshdyn.py examples/em_simple.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)"
  44. # run tests
  45. checks: runtest
  46. ./runtest -v
  47. unittest: checks
  48. #Cleaning documentation and dyncode
  49. clean-local: cleandoc
  50. -rm -vR doc/html doc/doxygen_sqlite3.db
  51. cleandoc:
  52. -rm -v $(dyncode_filename)
  53. #other cleans
  54. distclean-local:
  55. -rm -vR debian_package/${PACKAGE}-${VERSION}.tar.gz
  56. gitclean: distclean cleandoc
  57. -rm -vR autom4te.cache/ aclocal.m4 install-sh missing py-compile configure;
  58. .PHONY: cleandoc tests doc