Makefile 673 B

1234567891011121314151617181920212223242526272829
  1. BASEDIR = .
  2. CLASSES = "$(BASEDIR)/classes/" "$(BASEDIR)/../modules/"
  3. OUTPUTDIR = $(BASEDIR)/_build
  4. TOOLSDIR = $(BASEDIR)/tools
  5. JSDIR = "$(BASEDIR)/../platform/web"
  6. LANGARG ?= en
  7. LANGCMD = -l $(LANGARG)
  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" "$(LANGCMD)" $(CLASSES)
  19. rstjs:
  20. rm -rf "$(OUTPUTDIR)/rstjs"
  21. mkdir -p "$(OUTPUTDIR)/rstjs"
  22. npm --prefix "$(JSDIR)" ci
  23. npm --prefix "$(JSDIR)" run docs -- --destination "$(OUTPUTDIR)/rstjs/html5_shell_classref.rst"