Skip to content

Commit

Permalink
Add make asm-docs (#4590)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin authored and mattgodbolt committed Jan 24, 2023
1 parent 9e110fa commit 379079d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Makefile
Expand Up @@ -95,3 +95,13 @@ gpu-dev: prereqs ## Runs the site as a developer; including live reload support
.PHONY: debug
debug: prereqs ## Runs the site as a developer with full debugging; including live reload support and installation of git hooks
./node_modules/.bin/supervisor -w app.js,lib,etc/config,static/tsconfig.json -e 'js|ts|node|properties|yaml' -n exit --inspect 9229 --exec $(NODE) $(NODE_ARGS) -- -r esm -r ts-node/register ./app.js --debug $(EXTRA_ARGS)

.PHONY:
asm-docs:
$(MAKE) -C etc/scripts/docenizers || ( \
echo "==============================================================================="; \
echo "One of the docenizers failed to run, make sure you have installed the necessary"; \
echo "dependencies: pip3 install beautifulsoup4 pdfminer.six && npm install"; \
echo "==============================================================================="; \
exit 1 \
)
26 changes: 26 additions & 0 deletions etc/scripts/docenizers/Makefile
@@ -0,0 +1,26 @@
all: \
../../../lib/asm-docs/generated/asm-docs-6502.ts \
../../../lib/asm-docs/generated/asm-docs-amd64.ts \
../../../lib/asm-docs/generated/asm-docs-arm32.ts \
../../../lib/asm-docs/generated/asm-docs-avr.ts \
../../../lib/asm-docs/generated/asm-docs-evm.ts \
../../../lib/asm-docs/generated/asm-docs-java.ts \
../../../lib/asm-docs/generated/asm-docs-llvm.ts \
../../../lib/asm-docs/generated/asm-docs-python.ts

../../../lib/asm-docs/generated/asm-docs-6502.ts: docenizer-6502.py
python3 docenizer-6502.py
../../../lib/asm-docs/generated/asm-docs-amd64.ts: docenizer-amd64.py
python3 docenizer-amd64.py -o ../../../lib/asm-docs/generated/asm-docs-amd64.ts
../../../lib/asm-docs/generated/asm-docs-arm32.ts: docenizer-arm32.py
python3 docenizer-arm32.py -o ../../../lib/asm-docs/generated/asm-docs-arm32.ts
../../../lib/asm-docs/generated/asm-docs-avr.ts: docenizer-avr.py
python3 docenizer-avr.py
../../../lib/asm-docs/generated/asm-docs-evm.ts: docenizer-evm.py
python3 docenizer-evm.py -o ../../../lib/asm-docs/generated/asm-docs-evm.ts
../../../lib/asm-docs/generated/asm-docs-java.ts: docenizer-java.sh docenizer-java.js
./docenizer-java.sh
../../../lib/asm-docs/generated/asm-docs-llvm.ts: docenizer-llvm.sh docenizer-llvm.ts
./docenizer-llvm.sh
../../../lib/asm-docs/generated/asm-docs-python.ts: docenizer-python.py
python3 docenizer-python.py -o ../../../lib/asm-docs/generated/asm-docs-python.ts
2 changes: 1 addition & 1 deletion etc/scripts/docenizers/docenizer-java.js
Expand Up @@ -107,4 +107,4 @@ const main = async () => {
console.log('}');
};

main().then(() =>{}).catch(e => console.exception("Caught error", e));
main().then(() =>{}).catch(e => console.error("Caught error", e));

0 comments on commit 379079d

Please sign in to comment.