aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef08973..2582aa9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,27 @@ CC = clang
SOURCES = src/twbctf.c src/sds.c
HEADERS = src/twbctf.h src/sds.h
+MANPAGES = docs/sds.3
+
+all: sds-test $(MANPAGES)
-all: sds-test
sds-test: $(SOURCES) $(HEADERS) src/test.c
+ @echo "==> Building sds-test"
$(CC) $(CFLAGS) -o $@ $(SOURCES)
- @echo ">>> Type ./sds-test to run the sds.c unit tests."
+
+docs/%.3: docs/%.rst
+ @echo "==> Building manpages"
+ sphinx-build -b man -E docs/ docs/
+
+
+test: sds-test
+ ./sds-test
+
clean:
rm -f sds-test
+ rm docs/*.3
+
+
+.PHONY: all test