switch to pattern target to build mans
This commit is contained in:
parent
c233f98564
commit
5c2ad84d28
2 changed files with 3 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
||||||
# Warning: hack
|
# Warning: hack
|
||||||
|
|
||||||
my $prog=shift;
|
my $prog=shift;
|
||||||
|
$prog=~s/\.\d+$//;
|
||||||
my $section=shift;
|
my $section=shift;
|
||||||
|
|
||||||
print ".TH $prog $section\n";
|
print ".TH $prog $section\n";
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -24,10 +24,8 @@ git-annex: Build/SysConfig.hs
|
||||||
$(CABAL) build
|
$(CABAL) build
|
||||||
ln -sf dist/build/git-annex/git-annex git-annex
|
ln -sf dist/build/git-annex/git-annex git-annex
|
||||||
|
|
||||||
git-annex.1: doc/git-annex.mdwn
|
%.1: doc/%.mdwn
|
||||||
./Build/mdwn2man git-annex 1 doc/git-annex.mdwn > git-annex.1
|
./Build/mdwn2man $@ 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
|
|
||||||
|
|
||||||
# These are not built normally.
|
# These are not built normally.
|
||||||
git-union-merge.1: doc/git-union-merge.mdwn
|
git-union-merge.1: doc/git-union-merge.mdwn
|
||||||
|
|
Loading…
Reference in a new issue