diff options
Diffstat (limited to 'package/sqlite/sqlite.mk')
-rw-r--r-- | package/sqlite/sqlite.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk index 1d336f659..cc74fd74e 100644 --- a/package/sqlite/sqlite.mk +++ b/package/sqlite/sqlite.mk @@ -8,7 +8,6 @@ SQLITE_VERSION = 3.6.23.1 SQLITE_SOURCE = sqlite-amalgamation-$(SQLITE_VERSION).tar.gz SQLITE_SITE = http://www.sqlite.org SQLITE_INSTALL_STAGING = YES -SQLITE_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install SQLITE_LIBTOOL_PATCH = NO ifneq ($(BR2_LARGEFILE),y) @@ -35,15 +34,16 @@ else SQLITE_CONF_OPT += --disable-readline endif -$(eval $(call AUTOTARGETS,package,sqlite)) - -$(SQLITE_TARGET_UNINSTALL): - $(call MESSAGE,"Uninstalling") +define SQLITE_UNINSTALL_TARGET_CMDS rm -f $(TARGET_DIR)/usr/bin/sqlite3 rm -f $(TARGET_DIR)/usr/lib/libsqlite3* +endef + +define SQLITE_UNINSTALL_STAGING_CMDS rm -f $(STAGING_DIR)/usr/bin/sqlite3 rm -f $(STAGING_DIR)/usr/lib/libsqlite3* rm -f $(STAGING_DIR)/usr/lib/pkgconfig/sqlite3.pc rm -f $(STAGING_DIR)/usr/include/sqlite3*.h - rm -f $(SQLITE_TARGET_INSTALL_TARGET) $(SQLITE_HOOK_POST_INSTALL) +endef +$(eval $(call AUTOTARGETS,package,sqlite)) |