| 26 |
26 |
awk -v lang="$$lang" '$$1 == "\"Language-Team:" {print "\t\t\t\t\t\t<li><a href=\\\"contributor/" lang "/index.html\\\">" $$2 "</a></li>\\n"; exit}' contributor-docs/po/$$lang.po; \ |
| 27 |
27 |
done | sed '$$ s/\\n$$//') |
| 28 |
28 |
|
| 29 |
|
all: clean common-libs startpage user-all contributor-all |
| 30 |
|
|
| 31 |
|
user-all: common-libs user-html user-html-translations user-pdf user-pdf-translations |
| 32 |
|
|
| 33 |
|
contributor-all: common-libs contributor-html contributor-html-translations contributor-pdf contributor-pdf-translations |
| 34 |
|
|
| 35 |
|
common-libs: |
| 36 |
|
mkdir -p build/ |
| 37 |
|
cp -r libs-common/ build/ |
| 38 |
|
-cp startpage/*.css build/ |
| 39 |
|
@touch common-libs |
| 40 |
|
|
| 41 |
|
startpage: common-libs user-get-translations contributor-get-translations |
|
29 |
all: clean startpage user-all contributor-all |
|
30 |
|
|
31 |
user-all: user-html user-html-translations user-pdf user-pdf-translations |
|
32 |
|
|
33 |
contributor-all: contributor-html contributor-html-translations contributor-pdf contributor-pdf-translations |
|
34 |
|
|
35 |
startpage: startpage-style user-get-translations contributor-get-translations |
| 42 |
36 |
sed "s@<a href=\"[^\"]\+\">Official Documentation</a>@&$(VERSION)@; \ |
| 43 |
37 |
s@^\(.*\)<!-- user docs translations -->.*@$(TRSLINKSUSER)@" startpage/index.html > build/index.html |
| 44 |
38 |
sed -i "s@<a href=\"[^\"]\+\">Contributor Documentation</a>@&$(VERSION)@; \ |
| 45 |
39 |
s@^\(.*\)<!-- contributor docs translations -->.*@$(if $(TRSLINKSCONTR),$(TRSLINKSCONTR),\1)@" build/index.html |
| 46 |
|
|
|
40 |
|
|
41 |
startpage-style: common-libs |
|
42 |
cp startpage/*.css build/ |
|
43 |
@touch startpage-style |
|
44 |
|
|
45 |
common-libs: |
|
46 |
mkdir -p build/libs-common |
|
47 |
cp -r libs-common/css |
|
48 |
libs-common/fonts |
|
49 |
libs-common/images |
|
50 |
build/ |
|
51 |
@touch common-libs |
|
52 |
|
| 47 |
53 |
user-docs/update-translations: |
| 48 |
54 |
ifeq ($(TRANSLATIONS),) |
| 49 |
55 |
ifneq ($(wildcard user-docs/po/LINGUAS),) |