diff options
Diffstat (limited to 'gen-deps.sh')
-rwxr-xr-x | gen-deps.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gen-deps.sh b/gen-deps.sh deleted file mode 100755 index adb42ef..0000000 --- a/gen-deps.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -# This script wraps gcc -MM, which unhelpfully strips the directory -# off of the input filename. In other words, if you run: -# -# $ gcc -MM src/upb_parse.c -# -# ...the emitted dependency information looks like: -# -# upb_parse.o: src/upb_parse.h [...] -# -# Since upb_parse.o is actually in src, the dependency information is -# not used. To remedy this, we use the -MT flag (see gcc docs). - -set -e -rm -f deps -for file in $@; do - gcc -MM $file -MT ${file%.*}.o $CPPFLAGS -I. >> deps -done |