Skip to content

Commit

Permalink
Make in a subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 21, 2024
1 parent 2282d30 commit 91bb275
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ _static/dist/bundle.js:
@mkdir -p _static/dist
@cp ../javascript/dist/bundle-js.js _static/dist/bundle-js.js

_static/dist/c-lib.js:
_static/dist/c/lib.js:
@mkdir -p _static/dist/c
@$(MAKE) -C ../c dist/lib.wasm $(MFLAGS)
@cp ../c/dist/lib.js _static/dist/c-lib.js
@cp ../c/dist/lib.wasm _static/dist/c-lib.wasm

_static/dist/cplusplus-lib.js:
_static/dist/cp/lib.js:
@mkdir -p _static/dist/cp
@$(MAKE) -C ../cplusplus dist/lib.wasm $(MFLAGS)
@cp ../c/dist/lib.js _static/dist/cp-lib.js
@cp ../c/dist/lib.wasm _static/dist/cp-lib.wasm
@cp ../c/dist/lib.js _static/dist/cp/lib.js
@cp ../c/dist/lib.wasm _static/dist/cp/lib.wasm

_static/dist/rust.js:
@cd ../rust && wasm-pack build --target web --out-dir ../docs/_static/dist/
Expand All @@ -58,7 +60,7 @@ _static/dist/python.tar.gz:

.PHONY: html
html:
@$(MAKE) _static/dist/bundle.js _static/dist/c-lib.js _static/dist/cplusplus-lib.js _static/dist/python.tar.gz _static/dist/rust.js $(MFLAGS)
@$(MAKE) _static/dist/bundle.js _static/dist/c/lib.js _static/dist/cp/lib.js _static/dist/python.tar.gz _static/dist/rust.js $(MFLAGS)
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# Catch-all target: route all unknown targets to Sphinx using the new
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/test-c.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="mocha"></div>
<!-- Mocha setup and initiation code -->
<script type="module">
import * as wasm from './dist/c-lib.js';
import * as wasm from './dist/c/lib.js';
mocha.setup('bdd');
window.onload = function() {
for (let p = 1; p < 10000; p++) {
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/test-cp.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="mocha"></div>
<!-- Mocha setup and initiation code -->
<script type="module">
import * as wasm from './dist/cp-lib.js';
import * as wasm from './dist/cp/lib.js';
mocha.setup('bdd');
window.onload = function() {
for (let p = 1; p < 10000; p++) {
Expand Down

0 comments on commit 91bb275

Please sign in to comment.