aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2019-01-09 07:03:53 -0800
committerGitHub <noreply@github.com>2019-01-09 07:03:53 -0800
commit70bb90ae82abb46c0434d806cfd79e25b7c0098d (patch)
tree0897c238912e95794d5a74345837ea4b352662c7 /Makefile
parentf08e7ef525d431223084184e5e234ed8acbecfc4 (diff)
parent5e8ae5156c72593eb24dd125db32e860f59be820 (diff)
Merge pull request #3 from rul/doc
Tidy up example files and add an scdoc manpage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7ce9d40..a831cb3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
GO = go
+SCDOC = scdoc
+
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
all:
@@ -8,8 +10,15 @@ fmt:
$(GO) fmt
clean:
- rm -f shoelaces
+ rm -f shoelaces docs/shoelaces.8
+
+shoelaces.8:
+ $(SCDOC) < docs/shoelaces.8.scd > docs/shoelaces.8
+
+docs: shoelaces.8
test: fmt
$(GO) test -v $(pkgs) && \
./test/integ-test/integ_test.py
+
+.PHONY: all clean docs
nihil fit ex nihilo