Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Makefile.am 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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;\
  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. -find . -name Makefile.in -delete
  57. gitclean: distclean cleandoc
  58. -rm -vR autom4te.cache/ aclocal.m4 install-sh missing py-compile configure; find ./ -name Makefile.in |xargs rm -v
  59. .PHONY: cleandoc tests doc