awesome-www/Makefile

52 lines
1.7 KiB
Makefile
Raw Normal View History

# Make git not use user's config.
OLD_HOME:=$(HOME)
HOME:=/dev/null
all: output ldoc changelogs manpages
2007-11-20 09:28:50 +01:00
output: authors.mdwn
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
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
ldoc:
rm -f src/build
HOME=$(OLD_HOME) make -C src build cmake ldoc
2007-11-20 09:28:50 +01:00
clean:
rm -rf .ikiwiki html
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)
manpages:
mkdir -p html/doc/manpages
cd src/manpages; for manpage in *.?.txt; \
do asciidoc -a icons -b xhtml11 -o ../../html/doc/manpages/`basename $${manpage} .txt`.html $$manpage || exit 1; \
done
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
.PHONY: authors.mdwn changelogs manpages