Paste #cLVUZb3GFqLIZ2Z3MHdI
| 8 | 8 | TRANSLATIONS=$(shell basename -s .po -a desktop-guide/po/*.po) |
|---|---|---|
| 9 | 9 | endif |
| 10 | 10 | |
| 11 | ifneq ($(REVNO),) | |
| 12 | version := | |
| 13 | version += (Rev. $(REVNO)) | |
| 14 | endif | |
| 15 | ||
| 11 | 16 | all: clean desktop-guide startpage translate |
| 12 | 17 | |
| 18 | website: clean desktop-guide startpage-website translate | |
| 19 | ||
| 13 | 20 | desktop-guide: |
| 14 | 21 | make -C desktop-guide html |
| 15 | 22 | |
| … | ||
| 30 | 37 | done >> build/about/xubuntu-index.html |
| 31 | 38 | cat startpage/xubuntu-index-end.htx >> build/about/xubuntu-index.html |
| 32 | 39 | |
| 40 | startpage-website: | |
| 41 | cp startpage/*.css build/ | |
| 42 | cp startpage/*.png build/ | |
| 43 | sed "s|\(<a href=\"\).*\(desktop-guide/index\.html\">Official Documentation</a>\)|\1\2$(version)|" startpage/xubuntu-index-start.htx > build/index.html | |
| 44 | for lang in $(TRANSLATIONS); do \ | |
| 45 | awk -v lang="$$lang" '$$1 == lang {print "\t\t\t<li><a href=\"" lang "/index.html\">" $$2 "</a></li>"; f=1; exit} END {exit !f}' desktop-guide/po/LINGUANAMES || \ | |
| 46 | awk -v lang="$$lang" '$$1 == "\"Language-Team:" {print "\t\t\t<li><a href=\"" lang "/index.html\">" $$2 "</a></li>"; exit}' desktop-guide/po/$$lang.po; \ | |
| 47 | done >> build/index.html | |
| 48 | cat startpage/xubuntu-index-end.htx >> build/index.html | |
| 49 | ||
| 33 | 50 | test: |
| 34 | 51 | make -C desktop-guide test |
| 35 | 52 | |
| … | ||
| 41 | 58 | make -C desktop-guide clean |
| 42 | 59 | rm -rf build |
| 43 | 60 | |
| 44 | .PHONY: desktop-guide startpage |
|
| 61 | .PHONY: desktop-guide startpage startpage-website translate | |