-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
49 lines (41 loc) · 1.65 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Make git not use user's config.
OLD_HOME:=$(HOME)
HOME:=/dev/null
all: output ldoc changelogs manpages
output:
ikiwiki $(CURDIR) html -v --wikiname about --plugin=goodstuff \
--templatedir=templates \
--exclude=html --exclude=Makefile --exclude=README.md \
--exclude=README.for_webpage.md
echo awesomewm.org > html/CNAME
cp README.for_webpage.md html/README.md
ldoc:
make -C src distclean
HOME=$(OLD_HOME) make -C src cmake-build ldoc
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 --no-merges $$pv..$$v > html/changelogs/short/$$v.txt ; \
git --git-dir=src/.git log --no-merges $$pv..$$v > html/changelogs/$$v.txt ; \
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_gh_actions: all
build_for_gh_actions: BUILD_WEB?=/tmp/awesome-build-web
build_for_gh_actions: ASCIIDOC_ICONS_DIR?=/usr/share/asciidoc/icons
build_for_gh_actions:
test -d "$(ASCIIDOC_ICONS_DIR)"
rsync -PaOvz --delete --exclude=.git --chmod=u=rwX,g=rwX,o=rX,Dg+s --exclude src html/ \
"$(BUILD_WEB)"
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s src/build/doc/ \
"$(BUILD_WEB)/doc/api"
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s $(ASCIIDOC_ICONS_DIR) \
"$(BUILD_WEB)/doc/manpages/icons"
.PHONY: changelogs manpages