Makefile: Fix building progs out of progs_g
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Nov 2013 00:50:25 +0000 (01:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 26 Nov 2013 01:06:41 +0000 (02:06 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Makefile

index f169ce9..06fc47d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,10 +55,6 @@ FF_DEP_LIBS  := $(DEP_LIBS)
 
 all: $(AVPROGS)
 
-$(AVPROGS): %$(EXESUF): %_g$(EXESUF)
-       $(CP) $< $@
-       $(STRIP) $@
-
 $(TOOLS): %$(EXESUF): %.o $(EXEOBJS)
        $(LD) $(LDFLAGS) $(LD_O) $^ $(ELIBS)
 
@@ -106,6 +102,10 @@ endef
 
 $(foreach P,$(PROGS),$(eval $(call DOPROG,$(P))))
 
+$(PROGS:%=%$(PROGSSUF)$(EXESUF)): %$(PROGSSUF)$(EXESUF): %$(PROGSSUF)_g$(EXESUF)
+       $(CP) $< $@
+       $(STRIP) $@
+
 %$(PROGSSUF)_g$(EXESUF): %.o $(FF_DEP_LIBS)
        $(LD) $(LDFLAGS) $(LD_O) $(OBJS-$*) $(FF_EXTRALIBS)