diff options
author | Mans Rullgard <mans@mansr.com> | 2012-12-10 14:55:28 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-12-10 17:23:53 +0000 |
commit | 395c3feb3bb165af5760d287a9a64344b6269fe2 (patch) | |
tree | dd0be0639bb67a62554b95f47e8bad6422a4844c /common.mak | |
parent | 2ddf7c88d162473e84417e94e1fb7e4375ecfdae (diff) | |
download | ffmpeg-streaming-395c3feb3bb165af5760d287a9a64344b6269fe2.zip ffmpeg-streaming-395c3feb3bb165af5760d287a9a64344b6269fe2.tar.gz |
build: fix 'clean' target
This fixes removal of TOOLS as well as HOSTPROGS declared in the
top-level Makefile. The clean target in common.mak needs to be
eval'd since the variables used within are reset for each library.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -53,7 +53,13 @@ CLEANSUFFIXES = *.d *.o *~ *.h.c *.map *.ver DISTCLEANSUFFIXES = *.pc LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a +define RULES clean:: $(RM) $(OBJS) $(OBJS:.o=.d) + $(RM) $(HOSTPROGS) + $(RM) $(TOOLS) +endef + +$(eval $(RULES)) -include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d) $(HOBJS:.o=.d)) |