added uninstall make targets
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 12 Jun 2007 05:31:40 +0000 (05:31 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 12 Jun 2007 05:31:40 +0000 (05:31 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@988 d19143bc-622f-0410-bfdd-b5b2a6649095

Makefile
src/albino/Makefile
src/framework/Makefile
src/humperdink/Makefile
src/inigo/Makefile
src/miracle/Makefile
src/modules/Makefile
src/valerie/Makefile

index a755538..8cb236e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,3 +41,13 @@ install:
        if test -z "$(DESTDIR)"; then \
          /sbin/ldconfig || true; \
        fi
+
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)"/mlt-config
+       rm -f "$(DESTDIR)$(libdir)/pkgconfig/mlt-*.pc"
+       list='$(SUBDIRS)'; \
+       for subdir in $$list; do \
+               $(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
+       done
+       rm -rf "$(DESTDIR)$(prefix)/include/mlt"
+       rm -rf "$(DESTDIR)$(prefix)/share/mlt"
index ea54d97..45b7c80 100644 (file)
@@ -28,6 +28,9 @@ install:      all
        install -d "$(DESTDIR)$(bindir)"
        install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
 
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif
index 2a9ac35..0ce2439 100644 (file)
@@ -85,6 +85,11 @@ install:
        install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
 
+uninstall:
+       rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
+       rm -f "$(DESTDIR)$(libdir)/$(NAME)"
+       rm -rf "$(DESTDIR)$(prefix)/include/mlt/framework"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif
index 266f6c1..47ba3ed 100644 (file)
@@ -30,6 +30,9 @@ install:      all
        install -d "$(DESTDIR)$(bindir)"
        install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
 
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif
index d5e90c7..0e80dbf 100644 (file)
@@ -29,6 +29,9 @@ install:      all
        install -d "$(DESTDIR)$(bindir)"
        install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
 
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif
index 281b784..7fa8a29 100644 (file)
@@ -60,6 +60,12 @@ install:     all
        mkdir -p "$(DESTDIR)$(prefix)/include/mlt/miracle"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/miracle"
 
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+       rm -f "$(DESTDIR)$(libdir)/$(LIBTARGET)"
+       rm -f "$(DESTDIR)$(libdir)/$(LIBNAME)"
+       rm -rf "$(DESTDIR)$(prefix)/include/mlt/miracle"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif
index 84ab89e..fe29ef4 100644 (file)
@@ -27,3 +27,6 @@ install:
                fi \
        done
 
+uninstall:
+       rm -rf "$(DESTDIR)$(prefix)/share/mlt/modules"
+
index 3019183..c1a783b 100644 (file)
@@ -56,6 +56,11 @@ install:     all
        mkdir -p "$(DESTDIR)$(prefix)/include/mlt/valerie"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/valerie"
 
+uninstall:
+       rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
+       rm -f "$(DESTDIR)$(libdir)/$(NAME)"
+       rm -rf "$(DESTDIR)$(prefix)/include/mlt/valerie"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif