PUD: add uninstall target
authorFerry Huberts <f.huberts@mindef.nl>
Tue, 26 Jul 2011 07:51:27 +0000 (09:51 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Thu, 11 Aug 2011 12:17:10 +0000 (14:17 +0200)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
Makefile
lib/pud/Makefile

index 209b916..18720f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -250,6 +250,9 @@ pud:
 pud_install:
                $(MAKECMD) -C lib/pud DESTDIR=$(DESTDIR) install 
 
+pud_uninstall:
+               $(MAKECMD) -C lib/pud DESTDIR=$(DESTDIR) uninstall
+
 txtinfo:
                $(MAKECMD) -C lib/txtinfo clean
                $(MAKECMD) -C lib/txtinfo 
index 24d368b..5fc4492 100644 (file)
@@ -36,12 +36,15 @@ version: Makefile scripts/makeVersionH
 $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
        $(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
 
-.PHONY:        install clean dist distclean doc doc-clean
+.PHONY:        install uninstall clean dist distclean doc doc-clean
 
 install:       $(PLUGIN_FULLNAME)
        $(STRIP) $(PLUGIN_FULLNAME)
        $(INSTALL_LIB)
 
+uninstall:
+       $(UNINSTALL_LIB)
+
 clean: doc-clean
        rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME) "./src/version.h"