Makefile 798 B

1234567891011121314151617181920212223242526272829303132
  1. BASEDIR = .
  2. CLASSES = "$(BASEDIR)/classes/" "$(BASEDIR)/../modules/" "$(BASEDIR)/../platform/"
  3. OUTPUTDIR = $(BASEDIR)/_build
  4. TOOLSDIR = $(BASEDIR)/tools
  5. JSDIR = "$(BASEDIR)/../platform/web"
  6. LANGARG ?= en
  7. TOOLSOPT ?=
  8. .ONESHELL:
  9. clean:
  10. rm -rf "$(OUTPUTDIR)"
  11. doxygen:
  12. rm -rf "$(OUTPUTDIR)/doxygen"
  13. mkdir -p "$(OUTPUTDIR)/doxygen"
  14. doxygen Doxyfile
  15. rst:
  16. rm -rf "$(OUTPUTDIR)/rst"
  17. mkdir -p "$(OUTPUTDIR)/rst"
  18. python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" -l "$(LANGARG)" $(TOOLSOPT) $(CLASSES)
  19. xml-check:
  20. python3 "$(TOOLSDIR)/make_rst.py" --dry-run -l "$(LANGARG)" $(TOOLSOPT) $(CLASSES)
  21. rstjs:
  22. rm -rf "$(OUTPUTDIR)/rstjs"
  23. mkdir -p "$(OUTPUTDIR)/rstjs"
  24. npm --prefix "$(JSDIR)" ci
  25. npm --prefix "$(JSDIR)" run docs -- --destination "$(OUTPUTDIR)/rstjs/html5_shell_classref.rst"