mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix dependencies.
This commit is contained in:
parent
795ca3e5b8
commit
1589a7a4f8
@ -87,9 +87,9 @@ $(SUBDIRS.distclean):
|
||||
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
||||
|
||||
%.d: %.c
|
||||
set -e; FILE=`echo $@ | sed 's/\\//\\\\\\//g'`; \
|
||||
set -e; FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
|
||||
$(CC) -MM $(INCLUDES) $< \
|
||||
| sed "s/\($$FILE\)\.o[ :]*/\1.o $$FILE : /g" > $@; \
|
||||
| sed "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d : /g" > $@; \
|
||||
[ -s $@ ] || $(RM) $@
|
||||
|
||||
clean: $(SUBDIRS.clean)
|
||||
|
Loading…
Reference in New Issue
Block a user