mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-28 22:05:03 +00:00
ac78607538
Do not require a separate "make depend" step. Especially as new dependencies are not picked up until the next "make depend". Use gcc's capability to calculate dependencies during compilation.
19 lines
310 B
Bash
Executable File
19 lines
310 B
Bash
Executable File
#!/bin/sh
|
|
|
|
obj="$1"
|
|
exitcode="$2"
|
|
|
|
dep="`echo "$obj" | sed -e 's:\.o$:.d:'`"
|
|
test -f "$dep" || exit $exitcode
|
|
|
|
test -f .deps && rm -f .deps
|
|
if ! test -d .deps && ! mkdir .deps; then
|
|
rm -f "$dep"
|
|
exit 1
|
|
fi
|
|
|
|
target="`echo "$dep" | sed -e 's:/:_:g'`"
|
|
mv "$dep" ".deps/$target" || rm -f "$dep"
|
|
|
|
exit $exitcode
|