diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-18 21:22:51 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 00:17:52 +0100 |
commit | 275743751cc0ce2914ae1958926ff569dceea6c3 (patch) | |
tree | 44f6d93cec7943fb68f5aa37de3d64d8e8b0e382 /Makefile | |
parent | 660d0db02050486ea42332badfaadda5fbdbb1b0 (diff) | |
download | sds-275743751cc0ce2914ae1958926ff569dceea6c3.tar.xz |
man: Add initial sds(3) manpage
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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 |