include all optional build parts in haddock & hoogle docs
This commit is contained in:
parent
4c3613b473
commit
9333f98b6b
5
Makefile
5
Makefile
@ -34,7 +34,7 @@ test:
|
|||||||
./hledger.hs test
|
./hledger.hs test
|
||||||
|
|
||||||
PROFBIN=hledgerp
|
PROFBIN=hledgerp
|
||||||
BUILDPROF=ghc --make hledger.hs -prof -auto-all -o $(PROFBIN)
|
BUILDPROF=ghc $(BUILDFLAGS) --make hledger.hs -prof -auto-all -o $(PROFBIN)
|
||||||
RUNPROF=./$(PROFBIN) +RTS -p -RTS
|
RUNPROF=./$(PROFBIN) +RTS -p -RTS
|
||||||
PROFCMD=-s balance
|
PROFCMD=-s balance
|
||||||
TIME=`date +"%Y%m%d%H%M"`
|
TIME=`date +"%Y%m%d%H%M"`
|
||||||
@ -207,7 +207,8 @@ colourised-source hscolour: api-doc-dir
|
|||||||
MAIN=hledger.hs
|
MAIN=hledger.hs
|
||||||
|
|
||||||
# nb --ignore-all-exports means these are actually implementation docs
|
# nb --ignore-all-exports means these are actually implementation docs
|
||||||
HADDOCK=haddock -B `ghc --print-libdir` --no-warnings --ignore-all-exports
|
HADDOCK=haddock -B `ghc --print-libdir` --no-warnings --ignore-all-exports $(subst -D,--optghc=-D,$(BUILDFLAGS))
|
||||||
|
|
||||||
api-doc-with-source: api-doc-dir colourised-source $(MAIN)
|
api-doc-with-source: api-doc-dir colourised-source $(MAIN)
|
||||||
echo "Generating haddock api docs" ; \
|
echo "Generating haddock api docs" ; \
|
||||||
$(HADDOCK) -o api-doc -h --source-module=src-%{MODULE/./-}.html $(filter-out %api-doc-dir colourised-source,$^) ; \
|
$(HADDOCK) -o api-doc -h --source-module=src-%{MODULE/./-}.html $(filter-out %api-doc-dir colourised-source,$^) ; \
|
||||||
|
|||||||
@ -4,6 +4,10 @@ where
|
|||||||
import Ledger.Utils
|
import Ledger.Utils
|
||||||
import Options (progname)
|
import Options (progname)
|
||||||
|
|
||||||
|
#ifndef PATCHES
|
||||||
|
#define PATCHES "0"
|
||||||
|
#endif
|
||||||
|
|
||||||
-- updated by build process from VERSION
|
-- updated by build process from VERSION
|
||||||
version = "0.3.99"
|
version = "0.3.99"
|
||||||
-- PATCHES defined by build process from repo state
|
-- PATCHES defined by build process from repo state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user