changeset 2054:f99bf8ef5813

Fixed "genapi" dependencies.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 04 Oct 2017 14:51:18 +0300
parents 2ac75347ed1a
children f37d90fcd415
files GNUmakefile yaml/GNUmakefile
diffstat 2 files changed, 13 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -169,15 +169,8 @@ xslt/%.xslt:	xsls/%.xsls
 	$(call XSLScript, $<, $@)
 
 
-API_OUT=xml/en/docs/http/ngx_http_api_module.xml
-
-genapi:					\
-		yaml/nginx_api.yaml	\
-		yaml/yaml2xml.py	\
-		xml/en/docs/http/ngx_http_api_module_head.xml
-	@cat xml/en/docs/http/ngx_http_api_module_head.xml > $(API_OUT)
-	@yaml/yaml2xml.py yaml/nginx_api.yaml >> $(API_OUT)
-	@echo "</module>" >> $(API_OUT)
+genapi:
+	$(MAKE) -C yaml
 
 
 images:									\
new file mode 100644
--- /dev/null
+++ b/yaml/GNUmakefile
@@ -0,0 +1,11 @@
+API_HEAD=../xml/en/docs/http/ngx_http_api_module_head.xml
+
+../xml/en/docs/http/ngx_http_api_module.xml:				\
+		nginx_api.yaml						\
+		yaml2xml.py						\
+		$(API_HEAD)
+	cat $(API_HEAD) > $@
+	./yaml2xml.py nginx_api.yaml >> $@
+	echo "</module>" >> $@
+
+.DELETE_ON_ERROR: