comparison GNUmakefile @ 2034:7e7edf832099

Added the generated ngx_http_api_module and separate target for it. This avoids unnecessary build steps and dependencies. The separate 'genapi' target is added to regenerate the ngx_http_api_module from yaml source. The generated file is not removed during 'clean' step.
author Vladimir Homutov <vl@nginx.com>
date Fri, 08 Sep 2017 13:58:41 +0300
parents 5c55b7054b58
children ace0ddbb2513
comparison
equal deleted inserted replaced
2033:113a4c7cfeb0 2034:7e7edf832099
167 xslt/%.xslt: xsls/%.xsls 167 xslt/%.xslt: xsls/%.xsls
168 mkdir -p $(dir $@) 168 mkdir -p $(dir $@)
169 $(call XSLScript, $<, $@) 169 $(call XSLScript, $<, $@)
170 170
171 171
172 xml/en/docs/http/ngx_http_api_module.xml: \ 172 API_OUT=xml/en/docs/http/ngx_http_api_module.xml
173 yaml/nginx_api.yaml \ 173
174 yaml/yaml2xml.py \ 174 genapi: \
175 yaml/nginx_api.yaml \
176 yaml/yaml2xml.py \
175 xml/en/docs/http/ngx_http_api_module_head.xml 177 xml/en/docs/http/ngx_http_api_module_head.xml
176 @cat xml/en/docs/http/ngx_http_api_module_head.xml > $@ 178 @cat xml/en/docs/http/ngx_http_api_module_head.xml > $(API_OUT)
177 @yaml/yaml2xml.py yaml/nginx_api.yaml >> $@ 179 @yaml/yaml2xml.py yaml/nginx_api.yaml >> $(API_OUT)
178 @echo "</module>" >> $@ 180 @echo "</module>" >> $(API_OUT)
179 181
180 182
181 images: \ 183 images: \
182 binary/books/nginx_troubleshooting.jpg \ 184 binary/books/nginx_troubleshooting.jpg \
183 binary/books/nginx_richtig_konfigurieren.jpg \ 185 binary/books/nginx_richtig_konfigurieren.jpg \
346 /usr/local/bin/copy_draft.sh $(NGINX_ORG) 348 /usr/local/bin/copy_draft.sh $(NGINX_ORG)
347 endif 349 endif
348 350
349 clean: 351 clean:
350 rm -rf $(ZIP) $(OUT) xml/*/docs/dirindex.xml dir.map \ 352 rm -rf $(ZIP) $(OUT) xml/*/docs/dirindex.xml dir.map \
351 xml/*/docs/varindex.xml \ 353 xml/*/docs/varindex.xml
352 xml/en/docs/http/ngx_http_api_module.xml
353 354
354 .DELETE_ON_ERROR: 355 .DELETE_ON_ERROR: