Browse Source

Revert r21226, it was a joke:

Get one step closer to world domination.
Remove "make uninstall".

Originally committed as revision 21466 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Ramiro Polla 15 years ago
parent
commit
d3cb93b374
3 changed files with 25 additions and 3 deletions
  1. +10
    -2
      Makefile
  2. +3
    -1
      common.mak
  3. +12
    -0
      subdir.mak

+ 10
- 2
Makefile View File

@@ -110,8 +110,16 @@ install-man: $(MANPAGES)
install -d "$(MANDIR)/man1"
install -m 644 $(MANPAGES) "$(MANDIR)/man1"

uninstall:
@echo "I'm sorry, Dave. I'm afraid I can't do that"
uninstall: uninstall-progs uninstall-data uninstall-man

uninstall-progs:
rm -f $(addprefix "$(BINDIR)/", $(ALLPROGS))

uninstall-data:
rm -rf "$(DATADIR)"

uninstall-man:
rm -f $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))

testclean:
rm -rf tests/vsynth1 tests/vsynth2 tests/data tests/*~


+ 3
- 1
common.mak View File

@@ -47,7 +47,9 @@ $(BUILD_ROOT_REL)/version.h: $(SRC_PATH_BARE)/version.sh config.mak

install: install-libs install-headers

.PHONY: all depend dep *clean install* uninstall examples testprogs
uninstall: uninstall-libs uninstall-headers

.PHONY: all depend dep *clean install* uninstall* examples testprogs
endif

OBJS-$(HAVE_MMX) += $(MMX-OBJS-yes)


+ 12
- 0
subdir.mak View File

@@ -84,6 +84,18 @@ ifdef BUILT_HEADERS
install -m 644 $(addprefix $(SUBDIR),$(BUILT_HEADERS)) "$(INCINSTDIR)"
endif
install -m 644 $(BUILD_ROOT)/lib$(NAME)/lib$(NAME).pc "$(LIBDIR)/pkgconfig"

uninstall-libs::
-rm -f "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
"$(SHLIBDIR)/$(SLIBNAME)" \
"$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
-$(SLIB_UNINSTALL_EXTRA_CMD)
-rm -f "$(LIBDIR)/$(LIBNAME)"

uninstall-headers::
rm -f $(addprefix "$(INCINSTDIR)/",$(HEADERS))
rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
-rmdir "$(INCDIR)"
endef

$(eval $(RULES))


Loading…
Cancel
Save