Paste #CC7IP1SJM4guDL4v1yzp
=== modified file 'Makefile'
| 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 | |
| 47 | cp -r libs-common build/ | |
| 48 | @touch common-libs | |
| 49 | ||
| 47 | 50 | user-docs/update-translations: |
| 48 | 51 | ifeq ($(TRANSLATIONS),) |
| 49 | 52 | ifneq ($(wildcard user-docs/po/LINGUAS),) |
| 36 | 36 | zip -0Xq xubuntu-documentation.epub mimetype; \ |
|---|---|---|
| 37 | 37 | zip -Xr9Dq xubuntu-documentation.epub * |
| 38 | 38 | |
| 39 | html-style: | |
| 40 | $(MAKE) -C ../ common-libs | |
| 39 | html-style: ../common-libs | |
| 41 | 40 | mkdir -p ../build/contributor/libs |
| 42 | # cp -r ../libs-common ../build/ | |
| 43 | 41 | -cp -r libs/images ../build/contributor/libs/ |
| 44 | 42 | @touch html-style |
| 45 | 43 | |
| … | ||
| 50 | 48 | ../build/contributor/C/libs/images/ |
| 51 | 49 | @touch epub-style |
| 52 | 50 | |
| 51 | ../common-libs: | |
| 52 | $(MAKE) -C .. common-libs | |
| 53 | ||
| 54 | common-libs: ../common-libs | |
| 55 | ||
| 53 | 56 | translate: | get-translations |
| 54 | 57 | ../scripts/translate.sh $(TRANSOPTS) |
| 55 | 58 | ../scripts/translators.sh $(TRANSOPTS) |
| … | ||
| 96 | 99 | endif |
| 97 | 100 | |
| 98 | 101 | clean: |
| 99 | rm -rf ../build/libs-common ../build/contributor $(TRANSALL) fo |
|
| 102 | rm -rf ../build/libs-common ../build/contributor $(TRANSALL) fo ../common-libs html-style epub-style update-translations translate | |
| 32 | 32 | zip -0Xq xubuntu-documentation.epub mimetype; \ |
|---|---|---|
| 33 | 33 | zip -Xr9Dq xubuntu-documentation.epub * |
| 34 | 34 | |
| 35 | html-style: | |
| 36 | $(MAKE) -C ../ common-libs | |
| 35 | html-style: common-libs | |
| 37 | 36 | mkdir -p ../build/user/libs |
| 38 | # cp -r ../libs-common ../build/ | |
| 39 | 37 | cp -r libs/images ../build/user/libs/ |
| 40 | 38 | @touch html-style |
| 41 | 39 | |
| … | ||
| 46 | 44 | ../build/user/C/libs/images/ |
| 47 | 45 | @touch epub-style |
| 48 | 46 | |
| 47 | ../common-libs: | |
| 48 | $(MAKE) -C .. common-libs | |
| 49 | ||
| 50 | common-libs: ../common-libs | |
| 51 | ||
| 49 | 52 | translate: | get-translations |
| 50 | 53 | ../scripts/translate.sh $(TRANSOPTS) |
| 51 | 54 | ../scripts/translators.sh $(TRANSOPTS) |
| … | ||
| 92 | 95 | endif |
| 93 | 96 | |
| 94 | 97 | clean: |
| 95 | rm -rf ../build/libs-common ../build/user $(TRANSALL) fo |
|
| 98 | rm -rf ../build/libs-common ../build/user $(TRANSALL) fo ../common-libs html-style epub-style update-translations translate | |