aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c80ab49
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+MAN_PAGE := doc/yaqlite.1.txt
+MAN_DIR := share/man/man1
+MAN_PRODUCT := $(MAN_DIR)/yaqlite.1
+
+
+.PHONY: doc
+doc: $(MAN_PRODUCT)
+
+$(MAN_PRODUCT): $(MAN_PAGE) | $(MAN_DIR)
+ a2x --destination-dir $(MAN_DIR) --no-xmllint --format manpage $<
+
+$(MAN_DIR):
+ mkdir -p $@