13
13
# -F omitdchtml=on
14
14
# e.g., like this: make opts="-F ids=on -F omitdchtml=on"
15
15
16
- cdate =
17
- status =
18
- opts =
16
+ cdate ?=
17
+ status ?=
18
+ group ?= CSS
19
+ opts ?=
20
+ target ?= Overview
19
21
20
22
% .html : % .src.html
21
23
@echo " Calling post-processor to generate $@ ..."
22
- @curl -K ~ /.curl-w3.org -s -S -F output=html -F file=@$< -F group=CSS \
23
- -F method=file -F date=$(cdate ) -F status=$(status ) $( opts ) -o $@ \
24
- https://www.w3.org/Style/Group/process.cgi
24
+ @curl -K ~ /.curl-w3.org -s -S -F output=html -F file=@$< \
25
+ -F group= $( group ) -F method=file -F date=$(cdate ) -F status=$(status ) \
26
+ $( opts ) -o $@ https://www.w3.org/Style/Group/process.cgi
25
27
% .err : % .src.html
26
28
@echo " Calling post-processor to check $<..."
27
- @curl -K ~ /.curl-w3.org -s -S -F output=err -F file=@$< -F group=CSS \
28
- -F method=file -F date=$(cdate ) -F status=$(status ) $( opts ) -o $@ \
29
- https://www.w3.org/Style/Group/process.cgi
29
+ @curl -K ~ /.curl-w3.org -s -S -F output=err -F file=@$< \
30
+ -F group= $( group ) -F method=file -F date=$(cdate ) -F status=$(status ) \
31
+ $( opts ) -o $@ https://www.w3.org/Style/Group/process.cgi
30
32
31
33
# For Dispositions of Comments in css3-background:
32
34
% .html : % .txt; awk -f issues-txt-to-html.awk $< >$@
@@ -41,10 +43,10 @@ opts =
41
43
% .png : % .eps; convert -density 96x96 $< $@
42
44
43
45
44
- all : check Overview .html
46
+ all : check $( target ) .html
45
47
46
48
# egrep will exit with a zero exit code if there is anything left
47
- check : Overview .err
49
+ check : $( target ) .err
48
50
@cat $<
49
51
@if egrep -v ' ^(Warning:|\(Processed in .* seconds\)|No errors)' $< ; \
50
52
then false ; else true ; fi
@@ -53,15 +55,15 @@ check: Overview.err
53
55
# A handy shortcut:
54
56
55
57
commit : update all
56
- hg commit -m ' Generated. Do not edit!' Overview .html || true
58
+ hg commit -m ' Generated. Do not edit!' $( target ) .html || true
57
59
hg push
58
60
59
61
update :
60
62
hg pull
61
63
hg update
62
64
63
65
clean :
64
- rm -f Overview .html Overview .err
66
+ rm -f $( target ) .html $( target ) .err
65
67
66
68
67
69
0 commit comments