1313# -F omitdchtml=on
1414# e.g., like this: make opts="-F ids=on -F omitdchtml=on"
1515
16- cdate =
17- status =
18- opts =
16+ cdate ?=
17+ status ?=
18+ group ?= CSS
19+ opts ?=
20+ target ?= Overview
1921
2022% .html : % .src.html
2123 @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
2527% .err : % .src.html
2628 @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
3032
3133# For Dispositions of Comments in css3-background:
3234% .html : % .txt; awk -f issues-txt-to-html.awk $< >$@
@@ -41,10 +43,10 @@ opts =
4143% .png : % .eps; convert -density 96x96 $< $@
4244
4345
44- all : check Overview .html
46+ all : check $( target ) .html
4547
4648# egrep will exit with a zero exit code if there is anything left
47- check : Overview .err
49+ check : $( target ) .err
4850 @cat $<
4951 @if egrep -v ' ^(Warning:|\(Processed in .* seconds\)|No errors)' $< ; \
5052 then false ; else true ; fi
@@ -53,15 +55,15 @@ check: Overview.err
5355# A handy shortcut:
5456
5557commit : update all
56- hg commit -m ' Generated. Do not edit!' Overview .html || true
58+ hg commit -m ' Generated. Do not edit!' $( target ) .html || true
5759 hg push
5860
5961update :
6062 hg pull
6163 hg update
6264
6365clean :
64- rm -f Overview .html Overview .err
66+ rm -f $( target ) .html $( target ) .err
6567
6668
6769
0 commit comments