aboutsummaryrefslogtreecommitdiffstats
path: root/package/wireless-tools/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-06-18 18:30:40 +0000
committerNicolas Thill <nico@openwrt.org>2006-06-18 18:30:40 +0000
commitc12c40f4a65efb0a0c070fe914c6552dbf2f22d1 (patch)
tree2a3133f582fa7391fe86e7dfa463db4f5631ef2e /package/wireless-tools/Makefile
parent5448e327a35ac447794ff3d61900e8e9d16304ba (diff)
downloadmaster-187ad058-c12c40f4a65efb0a0c070fe914c6552dbf2f22d1.tar.gz
master-187ad058-c12c40f4a65efb0a0c070fe914c6552dbf2f22d1.tar.bz2
master-187ad058-c12c40f4a65efb0a0c070fe914c6552dbf2f22d1.zip
normalize Makefiles.
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3998 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wireless-tools/Makefile')
-rw-r--r--package/wireless-tools/Makefile26
1 files changed, 14 insertions, 12 deletions
diff --git a/package/wireless-tools/Makefile b/package/wireless-tools/Makefile
index 4839563e74..ad4eddab8c 100644
--- a/package/wireless-tools/Makefile
+++ b/package/wireless-tools/Makefile
@@ -26,10 +26,11 @@ URL:=http://hplabs.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
endef
define Build/Compile
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \
libiw.so.28 iwmulticall
- mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
PREFIX="$(PKG_INSTALL_DIR)" \
INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \
@@ -37,23 +38,24 @@ define Build/Compile
install-iwmulticall
endef
-define Package/wireless-tools/install
- install -d -m0755 $(1)/usr/lib
- install -d -m0755 $(1)/usr/sbin
- install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
- install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
-endef
-
define Build/InstallDev
- mkdir -p $(STAGING_DIR)/usr/{lib,include}
+ mkdir -p $(STAGING_DIR)/usr/include
+ $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
+ mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/
ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so
- $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/
endef
define Build/UninstallDev
- rm -f $(STAGING_DIR)/usr/lib/libiw.*
- rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
+ rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
+ $(STAGING_DIR)/usr/lib/libiw.so*
+endef
+
+define Package/wireless-tools/install
+ install -d -m0755 $(1)/usr/lib
+ install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
+ install -d -m0755 $(1)/usr/sbin
+ install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,wireless-tools))