1
1
# Makefile for the Xubuntu Documentation
2
# Ubuntu Documentation Project <ubuntu-doc@lists.ubuntu.com>
2
# Xubuntu Project <xubuntu-devel@lists.ubuntu.com>
4
# Include revision number
6
7
VERSION += (Rev. $(REVNO))
10
# All available translations
11
TRANSALL = $(shell basename -s .po -a desktop-guide/po/*.po)
9
13
all: clean startpage html translate
11
15
startpage: get-translations
20
24
done >> build/index.html
21
25
cat startpage/xubuntu-index-end.htx >> build/index.html
24
ifneq ($(wildcard desktop-guide/po/LINGUAS),)
26
../scripts/translate.sh -u
27
export TRANSLATIONS := $(shell cat desktop-guide/po/LINGUAS)
30
export TRANSLATIONS := $(shell basename -s .po -a desktop-guide/po/*.po)
28
ifeq ($(TRANSLATIONS),)
29
ifneq ($(wildcard desktop-guide/po/LINGUAS),)
31
../scripts/translate.sh -u
35
get-translations: update-translations
36
ifeq ($(TRANSLATIONS),)
37
ifneq ($(wildcard desktop-guide/po/LINGUAS),)
38
export TRANSLATIONS = $(shell cat desktop-guide/po/LINGUAS)
41
export TRANSLATIONS := $(TRANSALL)
42
export TRANSOPTS := -l "$(TRANSLATIONS)"
46
export TRANSOPTS := -l "$(TRANSLATIONS)"
34
make -C desktop-guide html
50
$(MAKE) -C desktop-guide html
37
make -C desktop-guide epub
40
make -C desktop-guide translate
43
make -C desktop-guide test
53
$(MAKE) -C desktop-guide epub
55
translate: get-translations
56
$(MAKE) -C desktop-guide translate
58
test: get-translations
59
$(MAKE) -C desktop-guide test
46
62
# exclude archive, backup, and bzr files
47
63
tar cvfz xubuntu-doc.tar.gz --exclude="*.tar.gz" --exclude="*~" --exclude "*.bzr*" *
50
make -C desktop-guide clean
66
$(MAKE) -C desktop-guide clean