Makefile 733 B

123456789101112131415161718192021222324252627282930313233343536
  1. PYLINT = pylint
  2. PEP8 = pycodestyle
  3. BLENDER = blender
  4. GODOT = godot
  5. .DEFAULT_GOAL := all
  6. pylint:
  7. $(PYLINT) io_scene_godot
  8. pep8:
  9. $(PEP8) io_scene_godot
  10. export-blends:
  11. mkdir -p ./tests/godot_project/exports/
  12. rm -rf ./tests/godot_project/.import # Ensure we don't have any hangover data
  13. $(BLENDER) -b --python ./tests/export_test_scenes.py
  14. test-import: export-blends
  15. $(GODOT) -e -q --path tests/ > log.txt 2>&1
  16. @cat log.txt
  17. ! grep -q "ERROR" log.txt
  18. update-examples:
  19. rm -r tests/reference_exports/*
  20. cp -r tests/godot_project/exports/* tests/reference_exports/
  21. compare: export-blends
  22. diff -x "*.escn.import" -rq tests/godot_project/exports/ tests/reference_exports/
  23. style-test: pep8 pylint
  24. all: compare style-test