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 \
|
2017-05-23 10:02:40 +02:00
|
|
|
--exclude=html --exclude=Makefile --exclude=README.md \
|
|
|
|
--exclude=README.for_webpage.md
|
2016-12-26 09:38:49 +01:00
|
|
|
echo awesomewm.org > html/CNAME
|
2017-05-23 10:02:40 +02:00
|
|
|
cp README.for_webpage.md html/README.md
|
2009-01-15 15:20:17 +01:00
|
|
|
|
2012-11-24 15:15:21 +01:00
|
|
|
ldoc:
|
2017-10-31 13:51:17 +01:00
|
|
|
make -C src distclean
|
2017-07-15 16:17:05 +02:00
|
|
|
HOME=$(OLD_HOME) make -C src cmake-build 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`" ; \
|
2016-12-26 23:00:58 +01:00
|
|
|
git --git-dir=src/.git shortlog --no-merges $$pv..$$v > html/changelogs/short/$$v.txt ; \
|
|
|
|
git --git-dir=src/.git log --no-merges $$pv..$$v > html/changelogs/$$v.txt ; \
|
2008-08-11 21:56:19 +02:00
|
|
|
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
|
2016-12-26 09:39:45 +01:00
|
|
|
rsync -PaOvz --delete --exclude=.git --chmod=u=rwX,g=rwX,o=rX,Dg+s --exclude src html/ \
|
2016-05-16 13:21:22 +02:00
|
|
|
$${BUILD_WEB}
|
2016-12-26 09:39:45 +01:00
|
|
|
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s src/build/doc/ \
|
2016-05-16 13:21:22 +02:00
|
|
|
$${BUILD_WEB}/doc/api
|
2016-12-26 09:39:45 +01:00
|
|
|
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s /usr/share/asciidoc/icons \
|
2016-05-16 13:21:22 +02:00
|
|
|
$${BUILD_WEB}/doc/manpages/icons
|
|
|
|
|
2016-12-17 21:10:15 +01:00
|
|
|
.PHONY: changelogs manpages
|