aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c03d62a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+HS ?= /Applications/Hammerspoon.app/Contents/Resources/extensions/hs/ipc/bin/hs
+
+.PHONY: doc
+doc: docs.json
+
+docs.json: *.lua
+ $(HS) -c "hs.doc.builder.genJSON(\"$(CURDIR)\")" \
+ | grep -v "^--" > $@