diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-07-14 17:11:29 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-07-14 17:16:24 +0100 |
commit | c502072cd7ee1691b8cd426c8b23a091613378b3 (patch) | |
tree | e002b02c3c173873df19e2c5669647b0d08e19ca /default.o.do | |
parent | 5107f97c50b1ea37df341fd9b06f61694ebb9b3f (diff) | |
download | pack-c502072cd7ee1691b8cd426c8b23a091613378b3.tar.gz pack-c502072cd7ee1691b8cd426c8b23a091613378b3.tar.xz pack-c502072cd7ee1691b8cd426c8b23a091613378b3.zip |
Remove need for test.o.do by adding @BUILD_DEP directive
Diffstat (limited to 'default.o.do')
-rwxr-xr-x | default.o.do | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/default.o.do b/default.o.do index 121c3c0..16e98a0 100755 --- a/default.o.do +++ b/default.o.do @@ -1,4 +1,6 @@ #!/bin/bash -e -redo-ifchange .compile .parse-depfile "${1%.o}.c" +src=${1%.o}.c +redo-ifchange .compile .parse-depfile "$src" +sed -n 's|.*@BUILD_DEP \(.*\)|\1|p' "$src" | tr '\n' '\0' | xargs -0 redo-ifchange . ./.compile ./.parse-depfile "${1%.o}.d" | tr '\n' '\0' | xargs -0 redo-ifchange |