forked from http-tests/cache-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 732 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
saxpath ?= "lib/saxon9.jar"
saxon ?= java -classpath $(saxpath) net.sf.saxon.Transform -l
themedir ?= ../../../httpwg-theme
saxparam ?= bootstrapCssUrl='/spec/bootstrap.min.css' \
siteJsUrl='/spec/script.mjs' \
siteCssUrl='/spec/style.css' \
banner='This copy of the specification has test results interspersed throughout; click on ℹ️ to see them.'
stylesheet := lib/rfcbootstrap.xslt
specs := rfc9111
TARGETS := $(addsuffix .html,$(specs))
.PHONY: all clean
all: $(TARGETS)
clean:
rm -f $(TARGETS)
%.cleanxml: %.xml
$(saxon) $< lib/xreffer.xslt | $(saxon) - lib/clean-for-DTD.xslt > $@
%.html: %.cleanxml $(stylesheet)
$(saxon) $< $(stylesheet) $(saxparam) pageUrl='https://httpwg.org/specs/$@' > $@