diff options
| author | Mattias Andrée <maandree@kth.se> | 2020-06-21 10:11:05 +0200 | 
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2020-06-21 10:11:05 +0200 | 
| commit | b30692f609452736ea55626a72b95d5a5523d720 (patch) | |
| tree | f18887c44bd484134b022ae59647a031d9571e53 /Makefile | |
| parent | Move inclusion of <linux/fs.h> to after <sys/mount.h>, will not build otherwise (diff) | |
| download | sctrace-b30692f609452736ea55626a72b95d5a5523d720.tar.gz sctrace-b30692f609452736ea55626a72b95d5a5523d720.tar.bz2 sctrace-b30692f609452736ea55626a72b95d5a5523d720.tar.xz  | |
Use literal tab inside [] in sed scripts
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 8 | 
1 files changed, 5 insertions, 3 deletions
@@ -19,6 +19,8 @@ HDR =\  	list-errnos.h\  	list-signums.h +S = [ 	] +  all: sctrace  $(OBJ): $(@:.o=.c) $(HDR) @@ -31,13 +33,13 @@ sctrace: $(OBJ)  list-errnos.h:  	printf '#define LIST_ERRNOS(_)\\\n\t' > $@  	cat $(ERRNO_HDRS) | sed 's/\/\/.*$$//' | tr -d '$$' | sed 's/\*\//\$$/g' | sed 's/\/\*[^$$]*\$$//g' \ -		| sed -n '/^[ \t]*#[ \t]*define[ \t].*[ \t][0-9]*[ \t]*$$/s/^[ \t#]*define[ \t]*\([^ \t]*\).*$$/_(\1)/p' \ +		| sed -n '/^$S*#$S*define$S.*$S[0-9]*$S*$$/s/^[ 	#]*define$S*\([^ 	]*\).*$$/_(\1)/p' \  		| sort | uniq | tr '\n' '#' | sed 's/#_/\\\n\t_/g' | tr '#' '\n' >> $@  list-signums.h: -	printf '#define LIST_SIGNUMS(_)\\\n\t' > $@ +	printf '#define LIST_SIGNUMS(_)\\\n	' > $@  	cat $(SIGNUM_HDRS) | sed 's/\/\/.*$$//' | tr -d '$$' | sed 's/\*\//\$$/g' | sed 's/\/\*[^$$]*\$$//g' \ -		| sed -n '/^[ \t]*#[ \t]*define[ \t][^_]*[ \t][0-9]*[ \t]*$$/s/^[ \t#]*define[ \t]*\([^ \t]*\).*$$/_(\1)/p' \ +		| sed -n '/^$S*#$S*define$S[^_]*$S[0-9]*$S*$$/s/^[ 	#]*define$S*\([^ 	]*\).*$$/_(\1)/p' \  		| sort | uniq | tr '\n' '#' | sed 's/#_/\\\n\t_/g' | tr '#' '\n' >> $@  install: sctrace  | 
