Skip to content

Commit 2f8e8ee

Browse files
committed
Download and patch http_parser quietly
1 parent 9d3c59a commit 2f8e8ee

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Makefile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ clean:
1010
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
1111

1212
http_parser.c:
13-
wget https://raw.githubusercontent.com/nodejs/http-parser/master/http_parser.c
14-
sed -i 's/#include <assert.h>/#include "compat\/assert.h"/' $@
15-
sed -i 's/#include <stddef.h>/#include "compat\/stddef.h"/' $@
16-
sed -i 's/#include <ctype.h>/#include "compat\/ctype.h"/' $@
17-
sed -i 's/#include <string.h>/#include "compat\/string.h"/' $@
18-
sed -i 's/#include <limits.h>/#include "compat\/limits.h"/' $@
19-
wget https://raw.githubusercontent.com/nodejs/http-parser/master/http_parser.h
20-
sed -i 's/#include <stddef.h>/#include "compat\/stddef.h"/' http_parser.h
21-
sed -i 's/#include <stdint.h>/#include "compat\/stdint.h"/' http_parser.h
13+
wget -q https://raw.githubusercontent.com/nodejs/http-parser/master/http_parser.c
14+
@sed -i 's/#include <assert.h>/#include "compat\/assert.h"/' $@
15+
@sed -i 's/#include <stddef.h>/#include "compat\/stddef.h"/' $@
16+
@sed -i 's/#include <ctype.h>/#include "compat\/ctype.h"/' $@
17+
@sed -i 's/#include <string.h>/#include "compat\/string.h"/' $@
18+
@sed -i 's/#include <limits.h>/#include "compat\/limits.h"/' $@
19+
@echo "File $@ was patched."
20+
wget -q https://raw.githubusercontent.com/nodejs/http-parser/master/http_parser.h
21+
@sed -i 's/#include <stddef.h>/#include "compat\/stddef.h"/' http_parser.h
22+
@sed -i 's/#include <stdint.h>/#include "compat\/stdint.h"/' http_parser.h
23+
@echo "File http_parser.h was patched."
2224

2325
distclean: clean
2426
$(RM) http_parser.c http_parser.h

0 commit comments

Comments
 (0)