diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-05-18 12:14:02 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-05-18 12:14:02 +0000 |
commit | f9edb71744b18730d5cbb401114795ed1e02ef82 (patch) | |
tree | dabf08d726e364218ed260abe8bd33829d770337 | |
parent | a11d5f50acddd149f95ebc1b8d30f8c4a7d11528 (diff) | |
download | ffmpeg-f9edb71744b18730d5cbb401114795ed1e02ef82.tar.gz |
uninstallation support
inspired by a patch from Richard, richiek.,@,.optushome.,.,.com.,.,.au
Originally committed as revision 5398 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | Makefile | 29 | ||||
-rw-r--r-- | common.mak | 16 | ||||
-rw-r--r-- | vhook/Makefile | 5 |
3 files changed, 50 insertions, 0 deletions
@@ -156,6 +156,35 @@ ifeq ($(CONFIG_PP),yes) $(MAKE) -C libavcodec/libpostproc install-headers endif +uninstall: uninstall-progs uninstall-libs uninstall-headers uninstall-man uninstall-vhook + +ALLPROGS=ffmpeg ffplay ffserver +uninstall-progs: + rm -f $(addprefix $(bindir)/, $(ALLPROGS)) + +ALLMANPAGES=$(addsuffix .1, $(ALLPROGS)) +uninstall-man: +ifneq ($(CONFIG_WIN32),yes) + rm -f $(addprefix $(mandir)/man1/,$(ALLMANPAGES)) +endif + +uninstall-vhook: + $(MAKE) -C vhook uninstall + +uninstall-libs: + $(MAKE) -C libavutil uninstall-libs + $(MAKE) -C libavcodec uninstall-libs + $(MAKE) -C libavformat uninstall-libs + $(MAKE) -C libavcodec/libpostproc uninstall-libs + +uninstall-headers: + $(MAKE) -C libavutil uninstall-headers + $(MAKE) -C libavcodec uninstall-headers + $(MAKE) -C libavformat uninstall-headers + $(MAKE) -C libavcodec/libpostproc uninstall-headers + -rmdir "$(incdir)" + -rmdir "$(prefix)/include/postproc" + dep: depend depend: .depend diff --git a/common.mak b/common.mak index 94272c5813..ff25cf6356 100644 --- a/common.mak +++ b/common.mak @@ -96,6 +96,22 @@ install-headers: install -m 644 $(addprefix "$(SRC_DIR)"/,$(HEADERS)) "$(incdir)" install -m 644 $(BUILD_ROOT)/lib$(NAME).pc "$(libdir)/pkgconfig" +uninstall: uninstall-libs uninstall-headers + +uninstall-libs: +ifeq ($(CONFIG_WIN32),yes) + -rm -f $(prefix)/$(SLIBNAME) +else + -rm -f $(libdir)/$(SLIBNAME_WITH_MAJOR) \ + $(libdir)/$(SLIBNAME) \ + $(libdir)/$(SLIBNAME_WITH_VERSION) +endif + -rm -f $(libdir)/$(LIB) + +uninstall-headers: + rm -f $(addprefix $(incdir)/,$(HEADERS)) + rm -f $(libdir)/pkgconfig/lib$(NAME).pc + # # include dependency files if they exist # diff --git a/vhook/Makefile b/vhook/Makefile index a176fd0c41..7e073e7c54 100644 --- a/vhook/Makefile +++ b/vhook/Makefile @@ -32,6 +32,11 @@ install: $(HOOKS) install -d "$(libdir)/vhook" install -m 755 $(HOOKS) "$(libdir)/vhook" +ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF) +uninstall: + rm -f $(addprefix $(libdir)/vhook/,$(ALLHOOKS)) + -rmdir "$(libdir)/vhook/" + %$(SLIBSUF): %.o $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< |