summaryrefslogtreecommitdiff
path: root/doc/bugs/package_build_fails_with_missing_man_directory.mdwn
blob: 03f1d36aaa10c01bb9c535ea327552ca787d7056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
When building a debian package, the build fails due to a missing man/ directory.

    ./Build/mdwn2man man/git-annex-vpop.1 1 doc/git-annex-vpop.mdwn > man/git-annex-vpop.1
    /bin/sh: 1: cannot create man/git-annex-vpop.1: Directory nonexistent

I was able to build the package with the following patch:

[[!format patch """
From: Justin Geibel <jtgeibel@gmail.com>
Date: Fri, 27 Mar 2015 16:21:13 -0400
Subject: Fix build of man pages

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d6fb1a1..b36cbcd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 mans=$(shell find doc -maxdepth 1 -name git-annex*.mdwn | sed -e 's/^doc/man/' -e 's/\.mdwn/\.1/')
-all=git-annex $(mans) docs
+all=git-annex mans docs
 
 CABAL?=cabal # set to "./Setup" if you lack a cabal program
 GHC?=ghc
"""]]

> [[fixed|done]] --[[Joey]]