diff options
author | xengineering <me@xengineering.eu> | 2023-01-08 19:13:30 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-01-08 19:13:30 +0100 |
commit | ed58cf39d6d2d10a28033c93a4cb00fa2db26591 (patch) | |
tree | 99afd664c757c35d4055b6c6a58ef1a564380f99 /Makefile | |
parent | 82df83c7169e28f5808a99f27735049c03b1980a (diff) | |
download | limox-ed58cf39d6d2d10a28033c93a4cb00fa2db26591.tar limox-ed58cf39d6d2d10a28033c93a4cb00fa2db26591.tar.zst limox-ed58cf39d6d2d10a28033c93a4cb00fa2db26591.zip |
Add PDF generation of documentation
Using Markdown features (as URLs) is even more useful if you actually
render this somewhere. PDF is now done and HTML might follow.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,11 +6,13 @@ _TESTS:=$(shell find ./tests/ -maxdepth 1 -type f -regex ".*\.c") TESTS:=$(patsubst ./%.c,build/%,$(_TESTS)) LIMOX=build/limox +DOCS=build/docs/README.pdf build/docs/ROADMAP.pdf -all: build $(OBJ) $(TESTS) $(LIMOX) +all: build $(OBJ) $(TESTS) $(LIMOX) $(DOCS) build: mkdir -p build/tests + mkdir -p build/docs $(LIMOX): $(OBJ) build/main.o $(CC) -o $@ $^ $(CFLAGS) @@ -18,6 +20,9 @@ $(LIMOX): $(OBJ) build/main.o build/%.o: %.c $(CC) -c -o $@ $< $(CFLAGS) +build/docs/%.pdf: %.md + pandoc -o $@ $< + build/tests/%: tests/%.c $(OBJ) $(CC) -o $@ $< $(OBJ) $(CFLAGS) $@ |