Ei kuvausta
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 816B

123456789101112131415161718192021222324252627282930313233343536373839
  1. python=python3
  2. dyncode_filename='lodel/leapi/dyncode.py'
  3. all: tests doc dyncode
  4. # generate doxygen documentation
  5. doc: cleandoc doc_graphviz
  6. doxygen
  7. doc_graphviz:
  8. cd doc/img/graphviz; make
  9. # Test em update ( examples/em_test.pickle )
  10. em_test:
  11. $(python) em_test.py
  12. # generate leapi dynamic code
  13. dyncode: clean_dyn em_test
  14. $(python) scripts/refreshdyn.py examples/em_test.pickle $(dyncode_filename) && echo -e "\n\nCode generated in $(dyncode_filename)"
  15. # run tests
  16. tests:
  17. ./runtest -v
  18. .PHONY: clean clean_dyn cleandoc cleanpyc tests
  19. clean: clean_dyn cleandoc cleanpyc
  20. cleanpyc:
  21. -find ./ |grep -E "\.pyc$$" |xargs rm -f 2>/dev/null
  22. cleanpycache:
  23. -find ./ -type d |grep '__pycache__' | xargs rmdir -f 2>/dev/null
  24. cleandoc:
  25. -rm -R doc/html doc/doxygen_sqlite3.db
  26. clean_dyn:
  27. -rm $(dyncode_filename)