summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2013-12-23 15:42:18 +0200
committerMarius Gedminas <marius@gedmin.as>2013-12-23 15:42:18 +0200
commitb516377fcacbfc2ec28b38d6c5e8e8ad99ecc10b (patch)
treeb6acb5ca3839303a7e86907884b3dee312b4f8ca
parent3746c6ce8d2e1a77ea7260fe08e554744502614b (diff)
Makefile rules for building man pages
-rw-r--r--.gitignore3
-rw-r--r--Makefile15
2 files changed, 16 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 6b2dd51..3bf7ba7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,6 @@ temp
tmp/
.tox/
.pc/
+gtimelog.1
+gtimelogrc.5
+gtimelogrc.sample
diff --git a/Makefile b/Makefile
index e680f2d..8c1433d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,14 @@ FILE_WITH_CHANGELOG = NEWS.rst
# Interesting targets
#
+manpages = gtimelog.1 gtimelogrc.5
+
.PHONY: all
-all:
- @echo "There's nothing that needs building. Just run ./gtimelog"
+all: $(manpages)
+
+.PHONY: run
+run:
+ ./gtimelog
.PHONY: check test
check test:
@@ -82,3 +87,9 @@ release: releasechecklist
@echo ' git commit -a -m "Post-release version bump" && git push && git push --tags'
@echo
+
+%.1: %.rst
+ rst2man $< > $@
+
+%.5: %.rst
+ rst2man $< > $@