blob: 8f99b16aae77fbd312f1eb3fed29a975acae6d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-aj,v 1.7 2003/02/27 14:05:01 grant Exp $
--- makedepend.SH.orig Mon Mar 19 18:33:17 2001
+++ makedepend.SH
@@ -68,6 +68,7 @@ if test -f Makefile; then
case "$osname" in
os2) ;;
netbsd) ;;
+ freebsd) ;;
*) $touch $firstmakefile ;;
esac
fi
@@ -155,6 +156,8 @@ for file in `$cat .clist`; do
$sed \
-e '1d' \
-e '/^#.*<stdin>/d' \
+ -e '/^#.*<built-in>/d' \
+ -e '/^#.*<command line>/d' \
-e '/^#.*"-"/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
-e 's/^[ ]*#[ ]*line/#/' \
@@ -196,7 +199,8 @@ if $test -s .deptmp; then
$echo "Updating $mf..."
$echo "# If this runs make out of memory, delete /usr/include lines." \
>> $mf.new
- $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp \
+ $sed 's|^\(.*\$(OBJ_EXT):\) *\(.*/.*\.c\) *$|\1 \2; '"$defrule \2|" .deptmp |\
+ $sed -e 's|^0$||' \
>>$mf.new
else
$MAKE hlist || ($echo "Searching for .h files..."; \
|