summaryrefslogtreecommitdiff
path: root/common.mak
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-05-18 12:14:02 +0000
committerDiego Biurrun <diego@biurrun.de>2006-05-18 12:14:02 +0000
commitf9edb71744b18730d5cbb401114795ed1e02ef82 (patch)
treedabf08d726e364218ed260abe8bd33829d770337 /common.mak
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 'common.mak')
-rw-r--r--common.mak16
1 files changed, 16 insertions, 0 deletions
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
#