2016-05-16 13:21:22 +02:00
|
|
|
# Make git not use user's config.
|
|
|
|
HOME:=/dev/null
|
|
|
|
|
|
|
|
all: output ldoc changelogs manpages
|
2007-11-20 09:28:50 +01:00
|
|
|
|
2009-01-15 15:20:17 +01:00
|
|
|
output: authors.mdwn
|
2016-05-16 18:22:54 +02:00
|
|
|
ikiwiki $(CURDIR) html -v --wikiname about --plugin=goodstuff \
|
|
|
|
--templatedir=templates --exclude=html --exclude=Makefile
|
2009-01-15 15:20:17 +01:00
|
|
|
|
|
|
|
authors.mdwn:
|
|
|
|
echo '## Primary' > authors.mdwn
|
|
|
|
echo '<pre>' >> authors.mdwn
|
|
|
|
git --git-dir=src/.git shortlog -n -s | head -n 10 | column -x -c 80 >> authors.mdwn
|
|
|
|
echo '</pre>' >> authors.mdwn
|
|
|
|
echo '## Contributors' >> authors.mdwn
|
|
|
|
echo '<pre>' >> authors.mdwn
|
|
|
|
git --git-dir=src/.git shortlog -n -s | tail -n +11 | column -x -c 80 >> authors.mdwn
|
|
|
|
echo '</pre>' >> authors.mdwn
|
2012-11-24 15:15:21 +01:00
|
|
|
ldoc:
|
2009-09-11 13:50:37 +02:00
|
|
|
rm -f src/build
|
2012-11-24 15:15:21 +01:00
|
|
|
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
|
|
|
|
|
2009-04-28 13:57:09 +02:00
|
|
|
.PHONY: authors.mdwn changelogs manpages
|