aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDiego Biurrun2006-05-18 12:14:02 +0000
committerDiego Biurrun2006-05-18 12:14:02 +0000
commitf9edb71744b18730d5cbb401114795ed1e02ef82 (patch)
treedabf08d726e364218ed260abe8bd33829d770337 /Makefile
parenta11d5f50acddd149f95ebc1b8d30f8c4a7d11528 (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--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4ccfa04c20..3692672630 100644
--- a/Makefile
+++ b/Makefile
@@ -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