summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--README.md2
2 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3bff2cd..b422c10 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
$@
diff --git a/README.md b/README.md
index 33aab18..ef65404 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,8 @@ Install these build dependencies:
- GNU coreutils
- GNU make
- gcc
+- pandoc
+- texlive-core
Install these runtime dependencies: