aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-03-23 12:24:20 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-03-23 12:24:20 -0400
commit052e77469015e82ca33733388ff5740fa06312e2 (patch)
treece55376acf6e7541b9f66263142fa576d417446a /Makefile
parentf622aa1dcb9f95274df584ab4c2f2199dbd94c54 (diff)
switch to pattern target to build mans
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d1fabe301..98b052cd9 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,8 @@ git-annex: Build/SysConfig.hs
$(CABAL) build
ln -sf dist/build/git-annex/git-annex git-annex
-git-annex.1: doc/git-annex.mdwn
- ./Build/mdwn2man git-annex 1 doc/git-annex.mdwn > git-annex.1
-git-annex-shell.1: doc/git-annex-shell.mdwn
- ./Build/mdwn2man git-annex-shell 1 doc/git-annex-shell.mdwn > git-annex-shell.1
+%.1: doc/%.mdwn
+ ./Build/mdwn2man $@ 1 $< > $@
# These are not built normally.
git-union-merge.1: doc/git-union-merge.mdwn