2016-05-16 13:21:22 +02:00
|
|
|
# Make git not use user's config.
|
2016-05-16 18:23:34 +02:00
|
|
|
OLD_HOME:=$(HOME)
|
2016-05-16 13:21:22 +02:00
|
|
|
HOME:=/dev/null
|
|
|
|
|
|
|
|
all: output ldoc changelogs manpages
|
2007-11-20 09:28:50 +01:00
|
|
|
|
2016-12-17 21:10:15 +01:00
|
|
|
output:
|
2016-05-16 18:22:54 +02:00
|
|
|
ikiwiki $(CURDIR) html -v --wikiname about --plugin=goodstuff \
|
2016-05-18 10:34:08 +02:00
|
|
|
--templatedir=templates \
|
|
|
|
--exclude=html --exclude=Makefile --exclude=README.md
|
2009-01-15 15:20:17 +01:00
|
|
|
|
2012-11-24 15:15:21 +01:00
|
|
|
ldoc:
|
2009-09-11 13:50:37 +02:00
|
|
|
rm -f src/build
|
2016-05-16 18:23:34 +02:00
|
|
|
HOME=$(OLD_HOME) make -C src build cmake ldoc
|
2007-11-20 09:28:50 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf .ikiwiki html
|
2008-08-01 16:32:20 +02:00
|
|
|
|
2008-08-11 21:56:19 +02:00
|
|
|
changelogs:
|
|
|
|
test -d html/changelogs/short || mkdir -p html/changelogs/short
|
|
|
|
git --git-dir=src/.git tag | grep -v rc | sort -n | \
|
|
|
|
(while read v; do \
|
|
|
|
test -z "$$pv" && pv="`git --git-dir=src/.git rev-list HEAD | tail -n1`" ; \
|
|
|
|
git --git-dir=src/.git shortlog $$pv..$$v > html/changelogs/short/$$v ; \
|
|
|
|
git --git-dir=src/.git log $$pv..$$v > html/changelogs/$$v ; \
|
|
|
|
pv=$$v; done)
|
2009-01-15 15:20:17 +01:00
|
|
|
|
2009-04-28 13:57:09 +02:00
|
|
|
manpages:
|
|
|
|
mkdir -p html/doc/manpages
|
2009-05-08 15:21:15 +02:00
|
|
|
cd src/manpages; for manpage in *.?.txt; \
|
2014-02-27 16:26:45 +01:00
|
|
|
do asciidoc -a icons -b xhtml11 -o ../../html/doc/manpages/`basename $${manpage} .txt`.html $$manpage || exit 1; \
|
2009-04-28 13:57:09 +02:00
|
|
|
done
|
|
|
|
|
2016-05-16 13:21:22 +02:00
|
|
|
build_for_travis: all
|
|
|
|
rsync -PaOvz --chmod=u=rwX,g=rwX,o=rX,Dg+s --exclude src html/ \
|
|
|
|
$${BUILD_WEB}
|
|
|
|
rsync -PaOvz --chmod=u=rwX,g=rwX,o=rX,Dg+s --delete src/build/doc/ \
|
|
|
|
$${BUILD_WEB}/doc/api
|
|
|
|
rsync -PaOvz --chmod=u=rwX,g=rwX,o=rX,Dg+s /usr/share/asciidoc/icons \
|
|
|
|
$${BUILD_WEB}/doc/manpages/icons
|
|
|
|
|
2016-12-17 21:10:15 +01:00
|
|
|
.PHONY: changelogs manpages
|