libuuid: add -source and -clean targets
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 5 Aug 2009 11:46:05 +0000 (13:46 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 5 Aug 2009 11:46:05 +0000 (13:46 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/e2fsprogs/e2fsprogs.mk

index fbadfb06666f1cbf408b5f5da1c86f4e52fa1022..3931548bf65b8d93c44f3dcac4af8bd4d0c14cf9 100644 (file)
@@ -151,7 +151,16 @@ e2fsprogs-clean:
 e2fsprogs-dirclean:
        rm -rf $(E2FSPROGS_DIR)
 
-libuuid-dirclean:: e2fsprogs-dirclean
+libuuid-clean:
+       -$(MAKE1) PATH=$(TARGET_PATH) DESTDIR=$(STAGING_DIR) LDCONFIG=true \
+               -C $(LIBUUID_DIR) uninstall
+       # make uninstall misses the includes
+       rm -rf $(STAGING_DIR)/usr/include/uuid
+       rm -f $(TARGET_DIR)/$(LIBUUID_TARGET_DIR)/$(LIBUUID_TARGET_BINARY)*
+       -$(MAKE1) -C $(LIBUUID_DIR) clean
+
+libuuid-source: e2fsprogs-source
+libuuid-dirclean: e2fsprogs-dirclean
 
 #############################################################
 #