Changeset 18839


Ignore:
Timestamp:
2009-12-18T20:27:29+01:00 (8 years ago)
Author:
nico
Message:

[packages] sysfsutils: don't blindly copy intermediate libtool files, use 'make install'! (closes: #6221)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/sysfsutils/Makefile

    r18816 r18839  
    11#  
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    3535                $(TARGET_CONFIGURE_OPTS) \ 
    3636                CFLAGS="$(TARGET_CFLAGS)" \ 
    37                 all 
     37                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     38                all install 
    3839endef 
    3940 
    4041define Build/InstallDev 
    41         $(INSTALL_DIR) $(1)/usr/include/sysfs 
    42         $(CP) $(PKG_BUILD_DIR)/include/*.h $(1)/usr/include/sysfs 
     42        $(INSTALL_DIR) $(1)/usr/include 
     43        $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/ 
    4344        $(INSTALL_DIR) $(1)/usr/lib 
    44         $(CP) $(PKG_BUILD_DIR)/lib/.libs/libsysfs.{a,so*} $(1)/usr/lib/ 
     45        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*} $(1)/usr/lib/ 
    4546endef 
    4647 
    4748define Package/sysfsutils/install 
    4849        $(INSTALL_DIR) $(1)/usr/bin 
    49         $(CP) $(PKG_BUILD_DIR)/cmd/systool $(1)/usr/bin/ 
     50        $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/ 
    5051        $(INSTALL_DIR) $(1)/usr/lib 
    51         $(CP) $(PKG_BUILD_DIR)/lib/.libs/libsysfs.so.* $(1)/usr/lib/ 
     52        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so.* $(1)/usr/lib/ 
    5253endef 
    5354 
Note: See TracChangeset for help on using the changeset viewer.