Mercurial > hg > nginx-site
diff xml/ru/GNUmakefile @ 734:99ea52dbb4d4
Moved all rules to the main makefile leaving language specific
makefiles with only the lists of translated documents.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 17 Oct 2012 14:30:05 +0000 |
parents | 81ad082bc837 |
children | 0ed4c093c026 |
line wrap: on
line diff
--- a/xml/ru/GNUmakefile Tue Oct 16 12:55:23 2012 +0000 +++ b/xml/ru/GNUmakefile Wed Oct 17 14:30:05 2012 +0000 @@ -1,5 +1,3 @@ -DOC_LANG = ru - DOCS = \ faq \ install \ @@ -16,15 +14,9 @@ http/configuring_https_servers \ debugging_log \ -DOCS_XML = $(foreach name, $(DOCS), xml/$(DOC_LANG)/docs/$(name).xml) -DOCS_HTML = $(foreach name, $(DOCS), $(OUT)/$(DOC_LANG)/docs/$(name).html) - FAQ = \ sys_errlist \ -FAQ_XML = $(foreach name, $(FAQ), xml/$(DOC_LANG)/docs/$(name).xml) -FAQ_HTML = $(foreach name, $(FAQ), $(OUT)/$(DOC_LANG)/docs/$(name).html) - REFS = \ ngx_core_module \ http/ngx_http_access_module \ @@ -75,31 +67,6 @@ mail/ngx_mail_smtp_module \ mail/ngx_mail_ssl_module \ -REFS_XML = $(foreach name, $(REFS), xml/$(DOC_LANG)/docs/$(name).xml) -REFS_HTML = $(foreach name, $(REFS), $(OUT)/$(DOC_LANG)/docs/$(name).html) - -$(DOC_LANG): \ - $(OUT)/$(DOC_LANG)/index.html \ - $(OUT)/$(DOC_LANG)/download.html \ - $(OUT)/$(DOC_LANG)/docs/index.html \ - $(DOCS_HTML) \ - $(REFS_HTML) \ - $(FAQ_HTML) \ - $(OUT)/$(DOC_LANG)/support.html \ - -$(OUT)/$(DOC_LANG)/docs/index.html: \ - $(DOCS_XML) \ - $(REFS_XML) \ - -xml/$(DOC_LANG)/docs/dirindex.xml: \ - $(REFS_XML) \ - xslt/dirindex.xslt - echo "<modules>$(patsubst %, \ - <module name=\"%\"/>, $(filter %.xml,$^))</modules>" | \ - xsltproc -o - \ - --stringparam LANG $(patsubst xml/%/docs/dirindex.xml,%,$@) \ - xslt/dirindex.xslt - | \ - sed 's;xml/[^/]*/docs/;;g' > $@ - -$(OUT)/$(DOC_LANG)/docs/faq.html: \ - $(FAQ_XML) \ +TOP = \ + download \ + support \