fix man page building

This commit is contained in:
Joey Hess 2016-06-02 16:54:13 -04:00
parent 67f50e9cdd
commit c8dd196234
Failed to extract signature
5 changed files with 22 additions and 6 deletions

2
.gitignore vendored
View file

@ -11,7 +11,7 @@ Build/Standalone
Build/OSXMkLibs
Build/LinuxMkLibs
Build/BuildVersion
Build/Mans
Build/MakeMans
git-annex
man
git-union-merge

15
Build/MakeMans.hs Normal file
View file

@ -0,0 +1,15 @@
{- Build man pages, for use by Makefile
-
- Copyright 2016 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU GPL version 3 or higher.
-}
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Main where
import Build.Mans
main :: IO ()
main = buildMansOrWarn

View file

@ -18,8 +18,8 @@ import System.Exit
import Data.Maybe
import Utility.Exception
main :: IO ()
main = do
buildMansOrWarn :: IO ()
buildMansOrWarn = do
mans <- buildMans
when (any isNothing mans) $
error "mdwn2man failed"

View file

@ -76,8 +76,8 @@ else
IKIWIKI=ikiwiki
endif
mans: Build/Mans
./Build/Mans
mans: Build/MakeMans
./Build/MakeMans
docs: mans
LC_ALL=C TZ=UTC $(IKIWIKI) doc html -v --wikiname git-annex \
@ -111,7 +111,7 @@ Build/OSXMkLibs: Build/OSXMkLibs.hs
$(GHC) --make $@ -Wall -fno-warn-tabs
Build/LinuxMkLibs: Build/LinuxMkLibs.hs
$(GHC) --make $@ -Wall -fno-warn-tabs
Build/Mans: Build/Mans.hs
Build/MakeMans: Build/MakeMans.hs
$(GHC) --make $@ -Wall -fno-warn-tabs
# Upload to hackage.

View file

@ -662,6 +662,7 @@ Executable git-annex
Build.EvilSplicer
Build.InstallDesktopFile
Build.LinuxMkLibs
Build.MakeMans
Build.Mans
Build.NullSoftInstaller
Build.OSXMkLibs