1
1
# Calling the post-processor with file-upload. Assumes the username
2
2
# and password are in ~/.curl-w3.org (user = USER:PASS)
3
3
#
4
- # To set a date other than today, use: make cdate=YYYYMMDD
4
+ # To set a date other than today, use: make date=YYYYMMDD
5
+ #
6
+ # "cdate" is an alias for "date": "make cdate=YYYYMMDD" works,
7
+ # too. And instead of a compact date, an ISO date is also accepted:
8
+ # "make date=YYYY-MM-DD".
5
9
#
6
10
# To set the status, modify one of the "this version" URLs:
7
11
# http://www.w3.org/TR/[YEAR]/CR-[SHORTNAME]-[CDATE]/
13
17
# -F omitdchtml=on
14
18
# e.g., like this: make opts="-F ids=on -F omitdchtml=on"
15
19
16
- cdate ?=
20
+ date ?=
17
21
status ?=
18
22
group ?= CSS
19
23
opts ?=
20
24
target ?= Overview
21
25
markup ?= html
26
+ cdate ?= $(date )
22
27
23
- % .html : % .src.html
28
+ % .html : % .src.html $( MAKEFILE_LIST ) % .options
24
29
@echo " Calling post-processor to generate $@ ..."
25
30
@curl -K ~ /.curl-w3.org -s -S -F output=html -F file=@$< \
26
31
-F group=$(group ) -F method=file -F date=$(cdate ) -F status=$(status ) \
27
32
$(opts ) -o $@ https://www.w3.org/Style/Group/process.cgi
28
- % .err : % .src.html
33
+ % .err : % .src.html % .options
29
34
@echo " Calling post-processor to check $<..."
30
35
@curl -K ~ /.curl-w3.org -s -S -F output=err -F file=@$< \
31
36
-F group=$(group ) -F method=file -F date=$(cdate ) -F status=$(status ) \
@@ -39,7 +44,7 @@ markup ?= html
39
44
curl -s -L -F file=@$< -F time=$(cdate ) -F output=err \
40
45
-F paragraph=$(markup ) $(opts ) -o $@ http://api.csswg.org/bikeshed/
41
46
42
- % .tmp : % .bs
47
+ % .tmp : % .bs $( MAKEFILE_LIST ) % .options
43
48
cp $< $@
44
49
if [ " $( cdate) " != " " ]; then sed -r -i " \
45
50
/< pre class=[' \"]?metadata/,/<\/pre/{ \
@@ -52,6 +57,11 @@ markup ?= html
52
57
s/< \/ pre/Status: $(status ) \n & /; \
53
58
}" $@ ; fi
54
59
60
+ # Check if make options (date, status, opts) changed
61
+ % .options : always
62
+ @echo ' $(MAKEFLAGS)' > $@ .tmp
63
+ @cmp -s $@ $@ .tmp && rm $@ .tmp || mv $@ .tmp $@
64
+
55
65
# For Dispositions of Comments in css3-background:
56
66
% .html : % .txt; awk -f issues-txt-to-html.awk $< >$@
57
67
@@ -65,6 +75,13 @@ markup ?= html
65
75
% .png : % .eps; convert -density 96x96 $< $@
66
76
67
77
78
+ # all:
79
+ # @echo MAKFLAGS = $(MAKEFLAGS)
80
+ # @echo MAKEOVERRIDES = $(MAKEOVERRIDES)
81
+ # @echo MAKEFILES = $(MAKEFILES)
82
+ # @echo MAKEFILE_LIST = $(MAKEFILE_LIST)
83
+
84
+
68
85
all : check $(target ) .html
69
86
70
87
# egrep will exit with a zero exit code if there is anything left
@@ -89,6 +106,7 @@ clean:
89
106
90
107
91
108
92
- .PHONY : check commit update clean
109
+ .PHONY : check commit update clean always
93
110
.DELETE_ON_ERROR :
94
- .PRECIOUS : % .png
111
+ .PRECIOUS : % .png % .options
112
+
0 commit comments