diff options
author | Aaron Ball <nullspoon@oper.io> | 2021-07-14 17:42:07 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2021-07-14 17:42:07 -0600 |
commit | cae4b24ae5d5d5ec39bdd1b18f59410792494eea (patch) | |
tree | 29bde1468b1939bd1fa783d1f632c1e58159dbbc | |
parent | 4deaadff1d559659fc5fc94c3093f4e0aebbda39 (diff) | |
download | oper.io-cae4b24ae5d5d5ec39bdd1b18f59410792494eea.tar.gz oper.io-cae4b24ae5d5d5ec39bdd1b18f59410792494eea.tar.xz |
Replace asciidoctor with asciidoc
This will soon be replaced completely with something else.
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,4 @@ -CCOPTS = --std=gnu99 -Wall +CCOPTS = --std=gnu99 -Wall -Werror -O2 .PHONY: src all: @@ -14,7 +14,7 @@ endif adoc: validate printf '<h1>%s</h1>\n' "$(shell head -n1 $(SRC))" > "$(DEST)" - asciidoctor -s --safe \ + asciidoc -s \ -a sectlinks \ -b html5 \ -o - "$(SRC)" >> "$(DEST)" @@ -34,6 +34,12 @@ src: cc $(CCOPTS) src/j2.c -c -o obj/j2.o cc $(CCOPTS) src/main.c obj/*.o -o index +test: src + if [ ! -d tests/obj ]; then mkdir tests/obj; fi + cc $(CCOPTS) tests/assert.c -c -o tests/obj/assert.o + cc $(CCOPTS) obj/*.o tests/obj/*.o tests/main.c -o tests/runtests + tests/runtests + clean: if [ -d obj ]; then rm -r obj/*; fi rm -f index |