Skip to content

Commit

Permalink
Moving narrative files around
Browse files Browse the repository at this point in the history
  • Loading branch information
robrohan committed Apr 21, 2022
1 parent 4a17100 commit 4b7fc85
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
.DS_Store
*.wasm
*.bak
manual.md
build

22 changes: 20 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.PHONY: docs

CC=clang
CC?=clang
# STACK_SIZE=$$(( 8 * 1024 * 1024 ))
STACK_SIZE=$$(( 8 * 1024 ))
STACK_SIZE?=$$(( 8 * 1024 ))

PANDOC?=pandoc
NARRATIVE?=narrative
MAIN?=examples/example0.c

NO_BUILT_INS=-fno-builtin-sin -fno-builtin-cos \
Expand Down Expand Up @@ -49,6 +52,21 @@ serve: clean build
clean_test:
rm -f test

docs:
# requires narrative and pandoc to be installed
rm -f docs/manual.md
cd docs; \
$(NARRATIVE) \
-i ./NARRATIVE \
-o manual.md; \
$(PANDOC) --pdf-engine=xelatex -s -t pdf \
--citeproc \
-f markdown manual.md \
-o manual.pdf;

install_linux:
apt-get install groff pandoc texlive-xetex

test: clean_test
mkdir -p build
# add -lm if you want to test against built in math.h
Expand Down
7 changes: 0 additions & 7 deletions NARRATIVE

This file was deleted.

7 changes: 7 additions & 0 deletions docs/NARRATIVE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
header.md
../README.md
../src/wefx.c
../src/math.c
../src/walloc.h
../src/wasm.h
footer.md
Binary file modified docs/manual.pdf
Binary file not shown.

0 comments on commit 4b7fc85

Please sign in to comment.