Newer
Older
GHCFLAGS=-O2 -Wall
GHCMAKE=ghc -odir build -hidir build $(GHCFLAGS) --make
bins=git-annex git-annex-shell
mans=git-annex.1 git-annex-shell.1
all: $(bins) $(mans) docs
Joey Hess
committed
SysConfig.hs: configure.hs
git-annex.1:
./mdwn2man git-annex 1 doc/git-annex.mdwn > git-annex.1
git-annex-shell.1:
./mdwn2man git-annex 1 doc/git-annex-shell.mdwn > git-annex-shell.1
install -d $(DESTDIR)$(PREFIX)/share/man/man1
install -m 0644 $(mans) $(DESTDIR)$(PREFIX)/share/man/man1
install -d $(DESTDIR)$(PREFIX)/share/doc/git-annex
if [ -d html ]; then \
rsync -a --delete html/ $(DESTDIR)$(PREFIX)/share/doc/git-annex/html/; \
fi
testcoverage:
rm -f test.tix test
ghc -odir build/test -hidir build/test $(GHCFLAGS) --make -fhpc test
./test
@hpc report test --exclude=Main --exclude=QC
@hpc markup test --exclude=Main --exclude=QC --destdir=.hpc >/dev/null
# If ikiwiki is available, build static html docs suitable for being
# shipped in the software package.
IKIWIKI=@echo "** ikiwiki not found, skipping building docs" >&2; true
--disable-plugin=smiley \
--exclude='news/.*'
rm -rf build $(bins) $(mans) test configure SysConfig.hs *.tix .hpc