1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Fix dependencies.

This commit is contained in:
Alasdair Kergon 2001-09-24 12:05:04 +00:00
parent 795ca3e5b8
commit 1589a7a4f8

View File

@ -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)