summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/misc/oktavia/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /web/server/h2o/libh2o/misc/oktavia/Makefile
parentInitial commit. (diff)
downloadnetdata-upstream.tar.xz
netdata-upstream.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/misc/oktavia/Makefile')
-rw-r--r--web/server/h2o/libh2o/misc/oktavia/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/misc/oktavia/Makefile b/web/server/h2o/libh2o/misc/oktavia/Makefile
new file mode 100644
index 00000000..b0fecfb8
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/oktavia/Makefile
@@ -0,0 +1,54 @@
+JSX=jsx
+NPM=npm
+
+stemmers = danish dutch english finnish french german hungarian \
+ italian \
+ norwegian porter portuguese romanian \
+ russian spanish swedish turkish
+
+build: bin/httpstatus bin/oktavia-mkindex bin/oktavia-search libs template-files
+
+.PHONY: test clean
+
+bin/%: tool/%.jsx
+ $(JSX) --release --executable node --add-search-path ./src --output $@ $<
+
+libs: lib/oktavia-search.js $(stemmers:%=lib/oktavia-%-search.js) template-files
+
+lib/oktavia-search.js: tool/web/oktavia-search.jsx
+ $(JSX) --release --executable web --add-search-path ./src --output $@ $<
+
+lib/oktavia-%-search.js: tool/web/oktavia-%-search.jsx
+ $(JSX) --release --executable web --add-search-path ./src --output $@ $<
+
+template-files: templates/jsdoc3/static/scripts/oktavia-search.js templates/sphinx/_static/oktavia-search.js templates/tinkerer/_static/oktavia-search.js
+
+templates/jsdoc3/static/scripts/oktavia-search.js: lib/oktavia-english-search.js
+ cp lib/oktavia-english-search.js templates/jsdoc3/static/scripts/
+ cp lib/oktavia-jquery-ui.js templates/jsdoc3/static/scripts/
+ cp lib/oktavia-jquery-highlight.js templates/jsdoc3/static/scripts/
+ cp lib/searchstyle.css templates/jsdoc3/static/styles/
+
+templates/sphinx/_static/oktavia-search.js: lib/oktavia-search.js
+ cp lib/oktavia-search.js templates/sphinx/_static/
+ cp lib/oktavia-jquery-ui.js templates/sphinx/_static/
+ cp lib/searchstyle.css templates/sphinx/_static/
+
+templates/tinkerer/_static/oktavia-search.js: lib/oktavia-search.js
+ cp lib/oktavia-search.js templates/tinkerer/_static/
+ cp lib/oktavia-jquery-ui.js templates/tinkerer/_static/
+ cp lib/searchstyle.css templates/tinkerer/_static/
+
+test:
+ prove
+
+test-jsdoc:
+ rm -rf out;./node_modules/jsdoc/jsdoc -t templates/jsdoc3 --verbose lib/oktavia-jquery-ui.js
+ bin/oktavia-mkindex -i out -m html -c 5 -o scripts -f "#main" -t js -r out
+
+clean:
+ rm bin/httpstatus || true
+ rm bin/oktavia-mkindex || true
+ rm bin/oktavia-search || true
+ rm $(stemmers:%=lib/oktavia-%-search.js) || true
+ rm lib/oktavia-search.js || true