2010-10-19 14:39:40 -04:00
|
|
|
all: git-annex docs
|
|
|
|
|
2010-11-11 17:01:19 -04:00
|
|
|
ghcmake=ghc -Wall -odir build -hidir build -O2 --make
|
2010-11-10 10:49:35 -04:00
|
|
|
|
2010-10-10 00:18:16 -04:00
|
|
|
git-annex:
|
2010-11-10 10:49:35 -04:00
|
|
|
$(ghcmake) git-annex
|
2010-10-10 00:18:16 -04:00
|
|
|
|
2010-10-16 16:41:24 -04:00
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)/usr/bin
|
|
|
|
install git-annex $(DESTDIR)/usr/bin
|
|
|
|
|
2010-10-19 14:39:40 -04:00
|
|
|
# If ikiwiki is available, build static html docs suitable for being
|
|
|
|
# shipped in the software package.
|
2010-10-19 14:37:19 -04:00
|
|
|
ifeq ($(shell which ikiwiki),)
|
2010-11-01 20:27:30 -04:00
|
|
|
IKIWIKI=@echo "** ikiwiki not found, skipping building docs" >&2; true
|
2010-10-19 14:37:19 -04:00
|
|
|
else
|
|
|
|
IKIWIKI=ikiwiki
|
|
|
|
endif
|
|
|
|
|
2010-11-02 16:49:35 -04:00
|
|
|
test:
|
2010-11-10 10:49:35 -04:00
|
|
|
$(ghcmake) test
|
|
|
|
./test
|
2010-11-02 16:49:35 -04:00
|
|
|
|
2010-10-19 14:37:19 -04:00
|
|
|
docs:
|
2010-10-19 15:59:40 -04:00
|
|
|
./mdwn2man git-annex 1 doc/git-annex.mdwn > git-annex.1
|
2010-10-19 14:39:40 -04:00
|
|
|
$(IKIWIKI) doc html -v --wikiname git-annex --plugin=goodstuff \
|
2010-10-19 19:28:29 -04:00
|
|
|
--no-usedirs --disable-plugin=openid --plugin=sidebar \
|
2010-10-22 15:12:48 -04:00
|
|
|
--underlaydir=/dev/null --disable-plugin=shortcut \
|
|
|
|
--disable-plugin=smiley
|
2010-10-10 00:18:16 -04:00
|
|
|
|
2010-10-19 15:59:40 -04:00
|
|
|
clean:
|
2010-11-10 10:49:35 -04:00
|
|
|
rm -rf build git-annex git-annex.1 test
|
2010-10-19 15:59:40 -04:00
|
|
|
rm -rf doc/.ikiwiki html
|
|
|
|
|
2010-11-10 10:49:35 -04:00
|
|
|
.PHONY: git-annex test
|