1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
|
3 |
# depcomp - compile a program generating dependencies as side-effects |
# depcomp - compile a program generating dependencies as side-effects |
4 |
# Copyright 1999, 2000 Free Software Foundation, Inc. |
# Copyright 1999, 2000, 2003 Free Software Foundation, Inc. |
5 |
|
|
6 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
7 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
271 |
if test -f "$tmpdepfile"; then |
if test -f "$tmpdepfile"; then |
272 |
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" |
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" |
273 |
# That's a space and a tab in the []. |
# That's a space and a tab in the []. |
274 |
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" |
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" |
275 |
else |
else |
276 |
echo "#dummy" > "$depfile" |
echo "#dummy" > "$depfile" |
277 |
fi |
fi |