From b7c10b2a2b58c1164324d0ac0aea00a1e14b0d6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Sun, 23 Aug 2009 11:02:32 +0000
Subject: [PATCH] Fix dependency generation for yasm assembler files

Originally committed as revision 19683 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 subdir.mak | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/subdir.mak b/subdir.mak
index ada6e537634..d89573904eb 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -31,11 +31,9 @@ $(SUBDIR)%-test.o: $(SUBDIR)%-test.c
 	$(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c -o $$@ $$^
 
 $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
+	$(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$@ $$< > $$(@:.o=.d)
 	$(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$<
 
-$(SUBDIR)x86/%.d: $(SUBDIR)x86/%.asm
-	$(YASM) $(YASMFLAGS) -I $$(<D)/ -M -o $$(@:%.d=%.o) $$< > $$@
-
 clean::
 	rm -f $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
 	    $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
-- 
GitLab