Skip to content

Commit 64c59c6

Browse files
committed
Allow use of the remote bikeshed with "make REMOTE=1"
1 parent 7b2aed1 commit 64c59c6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

css-transforms/Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
#
33
# FIXME: New documentation needed.
44
#
5-
5+
# Use "make REMOTE=1" to use remote bikeshed
6+
67
SOURCEFILE=Overview.src.html
7-
LINKEDFILE=.Overview.linked.html
8+
LINKEDFILE=Overview.linked.html
89
OUTPUTFILE=Overview.html
910
EXTERNALLINKS=perl external-spec-links.pl
1011
PREPROCESSOR=bikeshed.py
12+
REMOTE_PREPROCESSOR_URL=https://api.csswg.org/bikeshed/
1113

1214
all: $(OUTPUTFILE)
1315

14-
.%.linked.html : %.src.html
16+
%.linked.html : %.src.html
1517
$(EXTERNALLINKS) "$<" > "$@"
1618

1719
$(OUTPUTFILE): $(LINKEDFILE)
20+
ifneq (,$(REMOTE))
21+
curl $(REMOTE_PREPROCESSOR_URL) -F file=@$(LINKEDFILE) > "$@"
22+
else
1823
$(PREPROCESSOR) -f spec "$<" "$@"
19-
24+
endif
2025

0 commit comments

Comments
 (0)