diff options
author | Diego Biurrun | 2006-05-18 12:14:02 +0000 |
---|---|---|
committer | Diego Biurrun | 2006-05-18 12:14:02 +0000 |
commit | f9edb71744b18730d5cbb401114795ed1e02ef82 (patch) | |
tree | dabf08d726e364218ed260abe8bd33829d770337 /Makefile | |
parent | a11d5f50acddd149f95ebc1b8d30f8c4a7d11528 (diff) |
uninstallation support
inspired by a patch from Richard, richiek.,@,.optushome.,.,.com.,.,.au
Originally committed as revision 5398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 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 |