Mercurial > hg > nginx-site
comparison GNUmakefile @ 1296:7b60ab795af8
Makefile: avoided the use of shell code.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 17 Sep 2014 23:43:50 +0400 |
parents | 8743a07a0b39 |
children | 59f7fb43e39c |
comparison
equal
deleted
inserted
replaced
1295:8743a07a0b39 | 1296:7b60ab795af8 |
---|---|
22 [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\ | 22 [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\ |
23 t=; for l in $(LANGS); do \ | 23 t=; for l in $(LANGS); do \ |
24 [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \ | 24 [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \ |
25 echo --stringparam TRANS "\"$$t\""; \ | 25 echo --stringparam TRANS "\"$$t\""; \ |
26 fi) \ | 26 fi) \ |
27 $(shell p="$4"; [ -n "$$p" ] && \ | 27 $(if $4,--stringparam $4 $5) \ |
28 echo --stringparam $${p%%=*} $${p#*=}) \ | |
29 $1 $2 | 28 $1 $2 |
30 endef | 29 endef |
31 | 30 |
32 define JPEGNORM | 31 define JPEGNORM |
33 jpegtopnm $1 \ | 32 jpegtopnm $1 \ |
146 | 145 |
147 | 146 |
148 $(foreach year,$(YEARS),$(OUT)/$(year).html): \ | 147 $(foreach year,$(YEARS),$(OUT)/$(year).html): \ |
149 xml/index.xml \ | 148 xml/index.xml \ |
150 $(NEWS_DEPS) | 149 $(NEWS_DEPS) |
151 $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@))) | 150 $(call XSLT, xslt/news.xslt, $<, $@, YEAR, $(basename $(notdir $@))) |
152 | 151 |
153 $(OUT)/404.html: \ | 152 $(OUT)/404.html: \ |
154 xml/404.xml \ | 153 xml/404.xml \ |
155 xml/menu.xml \ | 154 xml/menu.xml \ |
156 dtd/error.dtd \ | 155 dtd/error.dtd \ |