switch to pattern target to build mans

This commit is contained in:
Joey Hess 2015-03-23 12:24:20 -04:00
parent c233f98564
commit 5c2ad84d28
2 changed files with 3 additions and 4 deletions

View file

@ -2,6 +2,7 @@
# Warning: hack
my $prog=shift;
$prog=~s/\.\d+$//;
my $section=shift;
print ".TH $prog $section\n";

View file

@ -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