Skip to content

Commit 69a4c5a

Browse files
committed
Use -o instead of > so that the target is not created if curl fails.
1 parent c50e5c9 commit 69a4c5a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

css3-layout/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ cdate = $(shell date +%Y%m%d)
1616
%.html: %.src.html
1717
@echo "Calling post-processor to generate $@..."
1818
@curl -K ~/.curl-w3.org -s -S -F output=html -F file=@$< -F group=CSS \
19-
-F method=file -F date=$(cdate) -F status=$(status) \
20-
http://cgi.w3.org/member-bin/process.cgi >$@
19+
-F method=file -F date=$(cdate) -F status=$(status) -o $@ \
20+
http://cgi.w3.org/member-bin/process.cgi
2121
%.err: %.src.html
2222
@echo "Calling post-processor to check $<..."
2323
@curl -K ~/.curl-w3.org -s -S -F output=err -F file=@$< -F group=CSS \
24-
-F method=file -F date=$(cdate) -F status=$(status) \
25-
http://cgi.w3.org/member-bin/process.cgi >$@
24+
-F method=file -F date=$(cdate) -F status=$(status) -o $@ \
25+
http://cgi.w3.org/member-bin/process.cgi
2626

2727
# For Dispositions of Comments in css3-background:
2828

@@ -49,7 +49,7 @@ update:
4949
hg pull -u
5050

5151
clean:
52-
-rm Overview.html Overview.err
52+
rm -f Overview.html Overview.err
5353

5454

5555

0 commit comments

Comments
 (0)