-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (17 loc) · 803 Bytes
/
Makefile
File metadata and controls
26 lines (17 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DIRS = . ./info ./download ./project ./document
SRCS = $(foreach dir, $(DIRS), $(wildcard $(dir)/*.xhtml))
OUTS = $(patsubst %.xhtml, %.html, $(SRCS))
.PHONY: all build test validate
all: build
build: $(OUTS)
%.html: %.xhtml ./2012/07/mozilla-gumi.xslt
xsltproc --param debug "false()" --stringparam page-modified $(shell date -r $< -u +"%Y-%m-%dT%H:%M:%SZ") ./2012/07/mozilla-gumi.xslt $< > $@
test: validate
validate: $(patsubst %.html, validate/%.xml, $(OUTS))
validate/%.xml: %.html ./2012/06/soap2txt.xslt
@test -d `dirname $@` || mkdir -p `dirname $@`
@curl --output $@ --fail --silent --form "uploaded_file=@$<" --form "output=soap12" http://validator.w3.org/check
@test -f $@ && xsltproc --stringparam filename $< ./2012/06/soap2txt.xslt $@
clean:
$(RM) -r validate
$(RM) $(OUTS)