comparison GNUmakefile @ 1084:be1d72ba7e5f

Switched from java XSLScript to xslscript.pl. Latter is available from http://hg.nginx.org/xslscript.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 21 Feb 2014 20:15:37 +0400
parents 271abf3db57b
children 28c05aa07b5f
comparison
equal deleted inserted replaced
1083:2c57830e0149 1084:be1d72ba7e5f
3 TEXT = text 3 TEXT = text
4 ZIP = gzip 4 ZIP = gzip
5 NGINX_ORG = /data/www/nginx.org 5 NGINX_ORG = /data/www/nginx.org
6 SHELL = ./umasked.sh 6 SHELL = ./umasked.sh
7 7
8 CP = /data/sites/java/xsls/\*:$(HOME)/java/xsls/\* 8 XSLS ?= xslscript.pl
9 RSYNC = rsync -v -rpc 9 RSYNC = rsync -v -rpc
10 CHMOD = /bin/chmod -R g=u 10 CHMOD = /bin/chmod -R g=u
11 11
12 12
13 define XSLScript 13 define XSLScript
14 java -cp $(CP) \ 14 $(XSLS) -o $(2) $(1)
15 com.pault.StyleSheet \
16 -x com.pault.XX -y com.pault.XX \
17 $(1) xsls/dump.xsls \
18 | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2)
19
20 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
21 endef 15 endef
22 16
23 define XSLT 17 define XSLT
24 xmllint --noout --valid $2 18 xmllint --noout --valid $2
25 xsltproc -o $3 \ 19 xsltproc -o $3 \
158 152
159 153
160 # Prevent intermediate .xslt files from being removed. 154 # Prevent intermediate .xslt files from being removed.
161 $(patsubst xsls/%.xsls,xslt/%.xslt,$(wildcard xsls/*.xsls)): 155 $(patsubst xsls/%.xsls,xslt/%.xslt,$(wildcard xsls/*.xsls)):
162 156
163 xslt/%.xslt: xsls/%.xsls \ 157 xslt/%.xslt: xsls/%.xsls
164 xsls/dump.xsls
165 mkdir -p $(dir $@) 158 mkdir -p $(dir $@)
166 $(call XSLScript, $<, $@) 159 $(call XSLScript, $<, $@)
167 160
168 images: \ 161 images: \
169 binary/books/nginx_http_server_jp.jpg \ 162 binary/books/nginx_http_server_jp.jpg \