Browse code

- make file dependency creation in subdirs bug fixed (all the .d files in the core's subdirs where buggy; the bug was found by Bogdan when compiling aaa_server)

Andrei Pelinescu-Onciul authored on 18/03/2003 16:07:42
Showing 1 changed files
... ...
@@ -19,7 +19,7 @@
19 19
 
20 20
 %.d: %.c $(ALLDEP)
21 21
 	@set -e; $(MKDEP) $(DEFS) $< \
22
-	|  sed 's#\($*\)\.o[ :]*#\1.o $@ : #g' > $@; \
22
+	|  sed 's#\(\($*D)\)\?$(*F)\)\.o[ :]*#$*.o $@ : #g' > $@; \
23 23
 	[ -s $@ ] || rm -f $@
24 24
 
25 25