2
2
#
3
3
4
4
# You can set these variables from the command line.
5
+ W3C_STATUS = ED
5
6
SPHINXOPTS =
6
7
SPHINXBUILD = sphinx-build
7
8
PAPER = a4
8
9
BUILDDIR = _build
9
10
STATICDIR = _static
10
11
DOWNLOADDIR = _download
11
12
NAME = WebAssembly
12
- DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2017 /WG-12-06 .md
13
+ DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2024 /WG-06-12 .md
13
14
TAR = tar
15
+ DEADLINE = $(shell date -d "+30 days" +% Y-% m-% d 2>/dev/null || date -v +30d +% Y-% m-% d)
14
16
15
17
# Internal variables.
16
18
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -80,7 +82,7 @@ publish-main: clean main bikeshed-keep deploy
80
82
all : pdf html bikeshed
81
83
82
84
.PHONY : main
83
- main : pdf html
85
+ main : macrosok pdf html
84
86
85
87
# Dirty hack to avoid rebuilding the Bikeshed version for every push.
86
88
.PHONY : bikeshed-keep
@@ -97,6 +99,10 @@ GENERATED = appendix/index-instructions.rst
97
99
% .rst : % .py
98
100
(cd ` dirname $@ ` ; ./` basename $^` )
99
101
102
+ .PHONY : macrosok
103
+ macrosok : $(GENERATED )
104
+ sh util/check_macros.sh
105
+
100
106
.PHONY : pdf
101
107
pdf : $(GENERATED ) latexpdf
102
108
mkdir -p $(BUILDDIR ) /html/$(DOWNLOADDIR )
@@ -150,7 +156,7 @@ bikeshed: $(GENERATED)
150
156
@echo
151
157
@echo =========================================================================
152
158
mkdir -p $(BUILDDIR ) /bikeshed_mathjax/
153
- bikeshed spec $( STATUS ) index.bs $(BUILDDIR ) /bikeshed_mathjax/index.html
159
+ bikeshed spec --md-status= $( W3C_STATUS ) --md-deadline= $( DEADLINE ) index.bs $(BUILDDIR ) /bikeshed_mathjax/index.html
154
160
mkdir -p $(BUILDDIR ) /html/bikeshed/
155
161
(cd util/katex/ && yarn && yarn build && npm install --only=prod)
156
162
python3 util/mathjax2katex.py $(BUILDDIR ) /bikeshed_mathjax/index.html \
@@ -192,7 +198,7 @@ WD-echidna: WD-tar
192
198
-F " tar=@$( BUILDDIR) /WD.tar" \
193
199
-F " decision=$( DECISION_URL) " | tee $(BUILDDIR ) /WD-echidna-id.txt
194
200
@echo
195
- @echo " Published working draft . Check its status at https://labs.w3.org/echidna/api/status?id=` cat $( BUILDDIR) /WD-echidna-id.txt` "
201
+ @echo " Published $( W3C_STATUS ) . Check its status at https://labs.w3.org/echidna/api/status?id=` cat $( BUILDDIR) /WD-echidna-id.txt` "
196
202
197
203
.PHONY : WD-echidna-CI
198
204
WD-echidna-CI : WD-tar
@@ -206,7 +212,7 @@ WD-echidna-CI: WD-tar
206
212
-F " token=$( W3C_ECHIDNA_TOKEN_CORE) " \
207
213
-F " decision=$( DECISION_URL) " | tee $(BUILDDIR ) /WD-echidna-id.txt
208
214
@echo
209
- @echo " Published working draft . Check its status at https://labs.w3.org/echidna/api/status?id=` cat $( BUILDDIR) /WD-echidna-id.txt` "
215
+ @echo " Published $( W3C_STATUS ) . Check its status at https://labs.w3.org/echidna/api/status?id=` cat $( BUILDDIR) /WD-echidna-id.txt` "
210
216
211
217
.PHONY : diff
212
218
diff : bikeshed
0 commit comments