comparison GNUmakefile @ 1295:8743a07a0b39

Makefile: simplified shell code.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 17 Sep 2014 23:43:23 +0400
parents c102344a0fa0
children 7b60ab795af8
comparison
equal deleted inserted replaced
1294:6f1b9137911e 1295:8743a07a0b39
15 endef 15 endef
16 16
17 define XSLT 17 define XSLT
18 xmllint --noout --valid $2 18 xmllint --noout --valid $2
19 xsltproc -o $3 \ 19 xsltproc -o $3 \
20 $(shell ff=`echo $2`; ff=$${ff#xml/}; \ 20 $(shell ff="$(strip $2)"; f=$${ff#xml/*/}; \
21 f=$${ff#*/}; \
22 if [ "$$f" != "$$ff" ]; then \ 21 if [ "$$f" != "$$ff" ]; then \
23 [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\ 22 [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\
24 t=; for l in $(LANGS); do \ 23 t=; for l in $(LANGS); do \
25 [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \ 24 [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \
26 echo --stringparam TRANS "\"$$t\""; \ 25 echo --stringparam TRANS "\"$$t\""; \