git » sdk » commit 7314f7a

Add haxe dox building to Makefile

author Stephen Paul Weber
2025-09-29 20:48:13 UTC
committer Stephen Paul Weber
2025-09-29 21:04:52 UTC
parent 76b43419ab30d9ba7b2251583a9082e30546cfac

Add haxe dox building to Makefile

.gitignore +2 -0
Makefile +7 -1
haxedoc.hxml +13 -0

diff --git a/.gitignore b/.gitignore
index d163a82..5881846 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,5 @@ npm/borogove-browser-enums.ts
 npm/borogove-browser-enums.js
 npm/index.js
 node_modules
+site
+haxedoc.xml
diff --git a/Makefile b/Makefile
index 1e30ec1..9b2ef82 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 HAXE_PATH=$$HOME/Software/haxe-4.3.1/hxnodejs/12,1,0/src
 
-.PHONY: all test hx-build-dep cpp/output.dso npm/borogove-browser.js npm/borogove.js
+.PHONY: all test doc hx-build-dep cpp/output.dso npm/borogove-browser.js npm/borogove.js site/haxe/index.html
 
 all: npm libborogove.so
 
@@ -69,6 +69,12 @@ cpp/output.dso:
 libborogove.so: cpp/output.dso
 	cp cpp/output.dso libborogove.so
 
+site/haxe/index.html:
+	haxe haxedoc.hxml
+	haxelib run dox --toplevel-package borogove -i haxedoc.xml -o site/haxe/
+
+doc: site/haxe/index.html
+
 clean:
 	rm -f npm/browser.js npm/index.js npm/borogove.js npm/borogove-enums.js
 	rm -f npm/index.d.ts npm/borogove.d.ts npm/borogove-enums.d.ts npm/borogove-enums.ts
diff --git a/haxedoc.hxml b/haxedoc.hxml
new file mode 100644
index 0000000..87f5852
--- /dev/null
+++ b/haxedoc.hxml
@@ -0,0 +1,13 @@
+--library datetime
+--library haxe-strings
+--library hsluv
+--library tink_http
+--library sha
+--library thenshim
+--library HtmlParser
+
+--js js
+--no-output
+-xml haxedoc.xml
+borogove.Client
+-D doc_gen