summaryrefslogtreecommitdiff
path: root/subdir.mak
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-06 14:25:10 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-06 14:25:10 +0000
commit50e10cbd7a62bf7731bf00c1a190a7ae3d5b3831 (patch)
tree001da8f2cc4dd80050dff124ef68a7ca69ae2421 /subdir.mak
parent84dc2d8afa1fce31c6fe97149ef70ba966500f65 (diff)
downloadffmpeg-50e10cbd7a62bf7731bf00c1a190a7ae3d5b3831.tar.gz
Use $(RM) to delete files
Originally committed as revision 22234 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'subdir.mak')
-rw-r--r--subdir.mak14
1 files changed, 7 insertions, 7 deletions
diff --git a/subdir.mak b/subdir.mak
index 2448950630..ea91f3fe2d 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -11,7 +11,7 @@ all: $(SUBDIR)$(LIBNAME)
install-libs: install-lib$(NAME)-static
$(SUBDIR)$(LIBNAME): $(OBJS)
- rm -f $@
+ $(RM) $@
$(AR) rc $@ $^ $(EXTRAOBJS)
$(RANLIB) $@
endif
@@ -35,12 +35,12 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
$(YASM) $(YASMFLAGS) -I $$(<D)/ -o $$@ $$<
clean::
- rm -f $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
+ $(RM) $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
$(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) \
$(HOSTOBJS) $(HOSTPROGS)
distclean:: clean
- rm -f $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
+ $(RM) $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
$(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
ifdef CONFIG_SHARED
@@ -86,15 +86,15 @@ endif
install -m 644 $(BUILD_ROOT)/lib$(NAME)/lib$(NAME).pc "$(LIBDIR)/pkgconfig"
uninstall-libs::
- -rm -f "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
+ -$(RM) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
"$(SHLIBDIR)/$(SLIBNAME)" \
"$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
-$(SLIB_UNINSTALL_EXTRA_CMD)
- -rm -f "$(LIBDIR)/$(LIBNAME)"
+ -$(RM) "$(LIBDIR)/$(LIBNAME)"
uninstall-headers::
- rm -f $(addprefix "$(INCINSTDIR)/",$(HEADERS))
- rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
+ $(RM) $(addprefix "$(INCINSTDIR)/",$(HEADERS))
+ $(RM) "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
-rmdir "$(INCDIR)"
endef