Install mysql_config in STAGING_DIR/usr/bin
authorNicolas Thill <nico@openwrt.org>
Fri, 27 May 2005 05:37:28 +0000 (05:37 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 27 May 2005 05:37:28 +0000 (05:37 +0000)
SVN-Revision: 1075

openwrt/package/mysql/Makefile

index 04f2b27c4822520c2d52bc76084f98ea716d1814..05b8acbc120673cf765bd22b636df2c632e8fc6e 100644 (file)
@@ -94,25 +94,33 @@ $(PKG_BUILD_DIR)/.built:
                SUBDIRS="include libmysql" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
+       $(MAKE) -C "$(PKG_BUILD_DIR)" \
+               SUBDIRS="scripts" \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               bin_SCRIPTS="mysql_config" \
+               install
        touch $@
 
 $(IPKG_LIBMYSQLCLIENT):
        install -d -m0755 $(IDIR_LIBMYSQLCLIENT)/usr/lib
-       cp -fpR $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(IDIR_LIBMYSQLCLIENT)/usr/lib/
+       cp -fp $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(IDIR_LIBMYSQLCLIENT)/usr/lib/
        $(RSTRIP) $(IDIR_LIBMYSQLCLIENT)
        $(IPKG_BUILD) $(IDIR_LIBMYSQLCLIENT) $(PACKAGE_DIR)
 
 $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so: $(PKG_BUILD_DIR)/.built
+       mkdir -p $(STAGING_DIR)/usr/bin
+       cp -fp $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(STAGING_DIR)/usr/bin/
        mkdir -p $(STAGING_DIR)/usr/include
        cp -fpR $(PKG_INSTALL_DIR)/usr/include/mysql $(STAGING_DIR)/usr/include/
        mkdir -p $(STAGING_DIR)/usr/lib
        cp -fpR $(PKG_INSTALL_DIR)/usr/lib/mysql $(STAGING_DIR)/usr/lib/
-       touch $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so
+       touch $@
 
 install-dev: $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so
 
 uninstall-dev:
        rm -rf \
+         $(STAGING_DIR)/usr/bin/mysql_config \
          $(STAGING_DIR)/usr/include/mysql \
          $(STAGING_DIR)/usr/lib/mysql \