Fix libuuid header location and reenable building of mkfs.ubifs
[openwrt-github/.git] / tools / libuuid / Makefile
index 672591fe1d7d4dd986b5c70259668cebac70df9c..4e6602e4884b3569b9e70690d40e37f9622d2eaf 100644 (file)
@@ -36,13 +36,13 @@ define Host/Compile
 endef
 
 define Host/Install
-       $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include}
-       $(CP) $(HOST_BUILD_DIR)/lib/uuid/uuid.h $(STAGING_DIR_HOST)/include/
+       $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/uuid}
+       $(CP) $(HOST_BUILD_DIR)/lib/uuid/uuid.h $(STAGING_DIR_HOST)/include/uuid/
        $(CP) $(HOST_BUILD_DIR)/lib/uuid/libuuid.{so*,a} $(STAGING_DIR_HOST)/lib/
 endef
 
 define Host/Clean
-       rm -f $(STAGING_DIR_HOST)/include/uuid.h
+       rm -f $(STAGING_DIR_HOST)/include/uuid/uuid.h
        rm -f $(STAGING_DIR_HOST)/lib/uuid/libuuid.{so*,a}
        $(call Host/Clean/Default)
 endef